blob: 402bbc447a1c18b06742f98bb3afbcc554ae7664 [file] [log] [blame]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:8:8: Error: Can't access platform private library.
// import 'dart:_foreign_helper' show JS; // error
// ^
//
// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:8:8: Error: Dart library 'dart:_foreign_helper' is not available on this platform.
// import 'dart:_foreign_helper' show JS; // error
// ^
// Context: The unavailable library 'dart:_foreign_helper' is imported through these paths:
//
// generic_methods_infer_js_builtin.dart => dart:_foreign_helper
//
//
// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:11:14: Error: Method not found: 'JS'.
// String x = JS('int', '42'); // error
// ^^
//
// pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:12:11: Error: Method not found: 'JS'.
// var y = JS<String>('String', '"hello"');
// ^^
//
import self as self;
import "dart:core" as core;
import "dart:_foreign_helper" show JS;
static method test() dynamic {
core::String x = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:11:14: Error: Method not found: 'JS'.
String x = JS('int', '42'); // error
^^";
invalid-type y = invalid-expression "pkg/front_end/testcases/inference/generic_methods_infer_js_builtin.dart:12:11: Error: Method not found: 'JS'.
var y = JS<String>('String', '\"hello\"');
^^";
y = "world";
y = 42;
}
static method main() dynamic {}