OLD | NEW |
(Empty) | |
| 1 library test; |
| 2 import self as self; |
| 3 import "dart:core" as core; |
| 4 |
| 5 static method getListOfString() → core::List<core::String> |
| 6 return const <core::String>[]; |
| 7 static method foo() → void { |
| 8 core::List<dynamic> myList = self::getListOfString(); |
| 9 myList.{core::Iterable::map}<core::int>((dynamic type) → core::int => 42); |
| 10 } |
| 11 static method bar() → void { |
| 12 dynamic list; |
| 13 try { |
| 14 list = <core::String>[]; |
| 15 } |
| 16 on dynamic catch(final dynamic _) { |
| 17 return; |
| 18 } |
| 19 list.map((dynamic value) → core::String => "${value}"); |
| 20 } |
| 21 static method main() → dynamic {} |
OLD | NEW |