OLD | NEW |
1 library; | 1 library; |
2 import self as self; | 2 import self as self; |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 | 4 |
5 class C extends core::Object { | 5 class C extends core::Object { |
6 constructor •() → void | 6 constructor •() → void |
7 : super core::Object::•() | 7 : super core::Object::•() |
8 ; | 8 ; |
9 set onlySetter(dynamic value) → void { | 9 set onlySetter(dynamic value) → void { |
10 core::print("C.onlySetter called with ${value}."); | 10 core::print("C.onlySetter called with ${value}."); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 core::print(throw new core::NoSuchMethodError::•(null, #onlySetter, <dynamic
>[], <dynamic, dynamic>{}, null)); | 42 core::print(throw new core::NoSuchMethodError::•(null, #onlySetter, <dynamic
>[], <dynamic, dynamic>{}, null)); |
43 throw "No error thrown"; | 43 throw "No error thrown"; |
44 } | 44 } |
45 on core::NoSuchMethodError catch(final dynamic e) { | 45 on core::NoSuchMethodError catch(final dynamic e) { |
46 core::print("Expected error: ${e}"); | 46 core::print("Expected error: ${e}"); |
47 } | 47 } |
48 self::onlySetter = "fisk"; | 48 self::onlySetter = "fisk"; |
49 new self::C::•().testC(); | 49 new self::C::•().testC(); |
50 new self::D::•().testD(); | 50 new self::D::•().testD(); |
51 } | 51 } |
OLD | NEW |