This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
covariant double? _zoo = 3.14; | |
set zoo(covariant double? o) {_zoo = o;} | |
double? get zoo => _zoo; | |
} | |
class Bar extends Foo { | |
@override double _zoo = 2.3; | |
@override set zoo(double o) {_zoo = o;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo {} | |
class Bar extends Foo {} | |
void main() { | |
Map<String, Foo> m = {}; | |
Map<String, Bar> n = {}; | |
m = n; | |
m["a"] = Foo(); | |
// Uncaught Error: TypeError: Instance of 'Foo': type 'Foo' is not a subtype of type 'Bar' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YEAR | DESCRIPTION | |
---|---|---|
1968 | Elefants Druk and Chukha arrive in Zurich Zoo | |
1976 | Snow leopards move to a new area | |
1979 | Zoo Zurich has 21 millionth visitor | |
1979 | on occasion of 50th anniversary entry fee reduced to 1 CHF | |
1985 | first PC installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang reader "test-lang-reader.rkt" | |
(+ 1 2) |