Debian Codegraph @

src/test/01-Basic/274-type-edge-cases.ck

raw
1 // strange (but valid) edge cases...
2
3 // first, not so strange...
4 // print info about Type
5 <<< CKDoc.describe( Type ) >>>;
6 // print info about SinOsc
7 <<< CKDoc.describe( SinOsc ) >>>;
8
9 // next, getting strange...
10 // a local variable whose name shadows an existing type
11 SinOsc NRev;
12 // should print out info about SinOsc
13 <<< CKDoc.describe( NRev ) >>>;
14
15 // really strange (but possible) situation...
16 // a local Type variable whose name shadows another type
17 Type JCRev;
18 // should print "" (and not Type's info)
19 // since here `JCRev` is an empty Type...
20 <<< CKDoc.describe( JCRev ) >>>;