blob: 075b356e4b393c611631a3ae31f87c4f6a8b263b [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set<dynamic>' isn't of expected type 'LinkedHashSet<int>'.
// - 'Set' is from 'dart:core'.
// - 'LinkedHashSet' is from 'dart:collection'.
// Change the type of the set literal or the context in which it is used.
// LinkedHashSet<int> lhs = {};
// ^
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map<dynamic, dynamic>' isn't of expected type 'LinkedHashMap<int, bool>'.
// - 'Map' is from 'dart:core'.
// - 'LinkedHashMap' is from 'dart:collection'.
// Change the type of the map literal or the context in which it is used.
// LinkedHashMap<int, bool> lhm = {};
// ^
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future<Set<dynamic>>' isn't of expected type 'Future<LinkedHashSet<int>>'.
// - 'Future' is from 'dart:async'.
// - 'Set' is from 'dart:core'.
// - 'LinkedHashSet' is from 'dart:collection'.
// Change the type of the set literal or the context in which it is used.
// Future<LinkedHashSet<int>> lhsfun() async => {};
// ^
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:33:52: Error: The map literal type 'Future<Map<dynamic, dynamic>>' isn't of expected type 'Future<LinkedHashMap<int, bool>>'.
// - 'Future' is from 'dart:async'.
// - 'Map' is from 'dart:core'.
// - 'LinkedHashMap' is from 'dart:collection'.
// Change the type of the map literal or the context in which it is used.
// Future<LinkedHashMap<int, bool>> lhmfun() async => {};
// ^
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set<dynamic>' can't be assigned to a variable of type 'FutureOr<LinkedHashSet<int>>'.
// - 'Set' is from 'dart:core'.
// - 'LinkedHashSet' is from 'dart:collection'.
// FutureOr<LinkedHashSet<int>> lhsfun2() => {};
// ^
//
// pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map<dynamic, dynamic>' can't be assigned to a variable of type 'FutureOr<LinkedHashMap<int, bool>>'.
// - 'Map' is from 'dart:core'.
// - 'LinkedHashMap' is from 'dart:collection'.
// FutureOr<LinkedHashMap<int, bool>> lhmfun2() => {};
// ^
//
import self as self;
import "dart:core" as core;
import "dart:collection" as col;
import "dart:async" as asy;
import "dart:async" show FutureOr;
import "dart:collection" show LinkedHashMap, LinkedHashSet;
static method main() dynamic async {
core::Map<core::int*, core::bool*>* m = <core::int*, core::bool*>{};
core::Set<core::int*>* s = block {
final core::Set<core::int*>* #t1 = col::LinkedHashSet::•<core::int*>();
} =>#t1;
core::Iterable<core::int*>* i = block {
final core::Set<core::int*>* #t2 = col::LinkedHashSet::•<core::int*>();
} =>#t2;
col::LinkedHashSet<core::int*>* lhs = let final Never* #t3 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:13:28: Error: The set literal type 'Set<dynamic>' isn't of expected type 'LinkedHashSet<int>'.
- 'Set' is from 'dart:core'.
- 'LinkedHashSet' is from 'dart:collection'.
Change the type of the set literal or the context in which it is used.
LinkedHashSet<int> lhs = {};
^" in block {
final core::Set<dynamic>* #t4 = col::LinkedHashSet::•<dynamic>();
} =>#t4;
col::LinkedHashMap<core::int*, core::bool*>* lhm = let final Never* #t5 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:14:34: Error: The map literal type 'Map<dynamic, dynamic>' isn't of expected type 'LinkedHashMap<int, bool>'.
- 'Map' is from 'dart:core'.
- 'LinkedHashMap' is from 'dart:collection'.
Change the type of the map literal or the context in which it is used.
LinkedHashMap<int, bool> lhm = {};
^" in <dynamic, dynamic>{};
core::Map<core::int*, core::bool*>* fm = await self::mapfun();
core::Set<core::int*>* fs = await self::setfun();
core::Iterable<core::int*>* fi = await self::iterablefun();
col::LinkedHashSet<core::int*>* flhs = await self::lhsfun();
col::LinkedHashMap<core::int*, core::bool*>* flhm = await self::lhmfun();
core::Map<core::int*, core::bool*>* fm2 = await self::mapfun2();
core::Set<core::int*>* fs2 = await self::setfun2();
core::Iterable<core::int*>* fi2 = await self::iterablefun2();
col::LinkedHashSet<core::int*>* flhs2 = await self::lhsfun2();
col::LinkedHashMap<core::int*, core::bool*>* flhm2 = await self::lhmfun2();
}
static method mapfun() → asy::Future<core::Map<core::int*, core::bool*>*>* async
return <core::int*, core::bool*>{};
static method setfun() → asy::Future<core::Set<core::int*>*>* async
return block {
final core::Set<core::int*>* #t6 = col::LinkedHashSet::•<core::int*>();
} =>#t6;
static method iterablefun() → asy::Future<core::Iterable<core::int*>*>* async
return block {
final core::Set<core::int*>* #t7 = col::LinkedHashSet::•<core::int*>();
} =>#t7;
static method lhsfun() → asy::Future<col::LinkedHashSet<core::int*>*>* async
return let final Never* #t8 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:32:46: Error: The set literal type 'Future<Set<dynamic>>' isn't of expected type 'Future<LinkedHashSet<int>>'.
- 'Future' is from 'dart:async'.
- 'Set' is from 'dart:core'.
- 'LinkedHashSet' is from 'dart:collection'.
Change the type of the set literal or the context in which it is used.
Future<LinkedHashSet<int>> lhsfun() async => {};
^" in block {
final core::Set<dynamic>* #t9 = col::LinkedHashSet::•<dynamic>();
} =>#t9;
static method lhmfun() → asy::Future<col::LinkedHashMap<core::int*, core::bool*>*>* async
return let final Never* #t10 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:33:52: Error: The map literal type 'Future<Map<dynamic, dynamic>>' isn't of expected type 'Future<LinkedHashMap<int, bool>>'.
- 'Future' is from 'dart:async'.
- 'Map' is from 'dart:core'.
- 'LinkedHashMap' is from 'dart:collection'.
Change the type of the map literal or the context in which it is used.
Future<LinkedHashMap<int, bool>> lhmfun() async => {};
^" in <dynamic, dynamic>{};
static method mapfun2() → FutureOr<core::Map<core::int*, core::bool*>*>*
return <core::int*, core::bool*>{};
static method setfun2() → FutureOr<core::Set<core::int*>*>*
return block {
final core::Set<core::int*>* #t11 = col::LinkedHashSet::•<core::int*>();
} =>#t11;
static method iterablefun2() → FutureOr<core::Iterable<core::int*>*>*
return block {
final core::Set<core::int*>* #t12 = col::LinkedHashSet::•<core::int*>();
} =>#t12;
static method lhsfun2() → FutureOr<col::LinkedHashSet<core::int*>*>*
return let final Never* #t13 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:38:43: Error: A value of type 'Set<dynamic>' can't be assigned to a variable of type 'FutureOr<LinkedHashSet<int>>'.
- 'Set' is from 'dart:core'.
- 'LinkedHashSet' is from 'dart:collection'.
FutureOr<LinkedHashSet<int>> lhsfun2() => {};
^" in ( block {
final core::Set<dynamic>* #t14 = col::LinkedHashSet::•<dynamic>();
} =>#t14) as{TypeError} FutureOr<col::LinkedHashSet<core::int*>*>*;
static method lhmfun2() → FutureOr<col::LinkedHashMap<core::int*, core::bool*>*>*
return let final Never* #t15 = invalid-expression "pkg/front_end/testcases/set_literals/disambiguation_rule.dart:39:49: Error: A value of type 'Map<dynamic, dynamic>' can't be assigned to a variable of type 'FutureOr<LinkedHashMap<int, bool>>'.
- 'Map' is from 'dart:core'.
- 'LinkedHashMap' is from 'dart:collection'.
FutureOr<LinkedHashMap<int, bool>> lhmfun2() => {};
^" in <dynamic, dynamic>{} as{TypeError} FutureOr<col::LinkedHashMap<core::int*, core::bool*>*>*;