9 lines
133 B
JavaScript
9 lines
133 B
JavaScript
![]() |
/* @flow */
|
||
|
class Foo{};
|
||
|
class Bar{};
|
||
|
|
||
|
var foostr: Foo | string = new Foo();
|
||
|
var barstr: Bar | string = new Bar();
|
||
|
|
||
|
foostr = barstr;
|