Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
17 lines
386 B
Plaintext
17 lines
386 B
Plaintext
class A {}
|
|
class B is A {}
|
|
class C is B {}
|
|
var a = new A
|
|
var b = new B
|
|
var c = new C
|
|
|
|
IO.print(a is A) // expect: true
|
|
IO.print(a is B) // expect: false
|
|
IO.print(a is C) // expect: false
|
|
IO.print(b is A) // expect: true
|
|
IO.print(b is B) // expect: true
|
|
IO.print(b is C) // expect: false
|
|
IO.print(c is A) // expect: true
|
|
IO.print(c is B) // expect: true
|
|
IO.print(c is C) // expect: true
|