blob: c5b503d091f54694e0984537bf923e14e4d8ac14 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/function_call1.dart:16:6: Error: Cannot invoke an instance of '_Closure1' because it declares 'call' to be something other than a method.
// - '_Closure1' is from 'pkg/front_end/testcases/general/function_call1.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// foo();
// ^
//
// pkg/front_end/testcases/general/function_call1.dart:17:6: Error: Cannot invoke an instance of '_Closure2' because it declares 'call' to be something other than a method.
// - '_Closure2' is from 'pkg/front_end/testcases/general/function_call1.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// bar();
// ^
//
// pkg/front_end/testcases/general/function_call1.dart:23:22: Error: Cannot invoke an instance of '_Closure1' because it declares 'call' to be something other than a method.
// - '_Closure1' is from 'pkg/front_end/testcases/general/function_call1.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// var field1 = closure1();
// ^
//
// pkg/front_end/testcases/general/function_call1.dart:24:22: Error: Cannot invoke an instance of '_Closure2' because it declares 'call' to be something other than a method.
// - '_Closure2' is from 'pkg/front_end/testcases/general/function_call1.dart'.
// Try changing 'call' to a method or explicitly invoke 'call'.
// var field2 = closure2();
// ^
//
import self as self;
import "dart:core" as core;
class _Closure1 extends core::Object {
synthetic constructor •() self::_Closure1
: super core::Object::•()
;
get call() self::_Closure1
return this;
}
class _Closure2 extends core::Object {
final field self::_Closure2 call;
constructor •(self::_Closure2 call) self::_Closure2
: self::_Closure2::call = call, super core::Object::•()
;
}
late static field self::_Closure1 closure1;
late static field self::_Closure2 closure2;
static field invalid-type field1 = invalid-expression "pkg/front_end/testcases/general/function_call1.dart:23:22: Error: Cannot invoke an instance of '_Closure1' because it declares 'call' to be something other than a method.
- '_Closure1' is from 'pkg/front_end/testcases/general/function_call1.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
var field1 = closure1();
^";
static field invalid-type field2 = invalid-expression "pkg/front_end/testcases/general/function_call1.dart:24:22: Error: Cannot invoke an instance of '_Closure2' because it declares 'call' to be something other than a method.
- '_Closure2' is from 'pkg/front_end/testcases/general/function_call1.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
var field2 = closure2();
^";
static method test(self::_Closure1 foo, self::_Closure2 bar) dynamic {
invalid-expression "pkg/front_end/testcases/general/function_call1.dart:16:6: Error: Cannot invoke an instance of '_Closure1' because it declares 'call' to be something other than a method.
- '_Closure1' is from 'pkg/front_end/testcases/general/function_call1.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
foo();
^";
invalid-expression "pkg/front_end/testcases/general/function_call1.dart:17:6: Error: Cannot invoke an instance of '_Closure2' because it declares 'call' to be something other than a method.
- '_Closure2' is from 'pkg/front_end/testcases/general/function_call1.dart'.
Try changing 'call' to a method or explicitly invoke 'call'.
bar();
^";
}
static method main() dynamic {}