blob: b967f5580747e22b4d410f0634ddea78cfc8fa41 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/extensions/issue44844.dart:7:8: Error: 'foo' is already declared in this scope.
// void foo() {}
// ^^^
// pkg/front_end/testcases/extensions/issue44844.dart:6:14: Context: Previous declaration of 'foo'.
// static int foo = 2;
// ^^^
//
// pkg/front_end/testcases/extensions/issue44844.dart:11:5: Error: The method 'foo' isn't defined for the class 'int'.
// Try correcting the name to the name of an existing method, or defining a method named 'foo'.
// 3.foo();
// ^^^
//
import self as self;
import "dart:core" as core;
extension _extension#0 on core::int* {
static field foo = self::_extension#0|foo;
}
static field core::int* _extension#0|foo;
static method test() void {
invalid-expression "pkg/front_end/testcases/extensions/issue44844.dart:11:5: Error: The method 'foo' isn't defined for the class 'int'.
Try correcting the name to the name of an existing method, or defining a method named 'foo'.
3.foo();
^^^";
}
static method main() dynamic {}