☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
06-Errors
/
error-cast-to-nonchild.ck
☽
☼
src/test/06-Errors/error-cast-to-nonchild.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// error case: verify error when casting to a non-subclass
2
// related:: 01-Basic/211-cast-to-child.ck
3
4
// a class (not subclass of Event)
5
class Foo { }
6
7
// an Event
8
Event e;
9
10
// cast to not subclass
11
e $ Foo @=> Foo @ f;