"cast(Foo) foo" gets a maybe type only if Foo is a class
commitaa51715fa2b55ade060ee403f0a6bb264e0969bf
authorThomas Leonard <talex5@gmail.com>
Sun, 12 Oct 2008 10:55:13 +0000 (12 11:55 +0100)
committerThomas Leonard <talex5@gmail.com>
Sun, 12 Oct 2008 10:55:13 +0000 (12 11:55 +0100)
treedbab7dcea4fc3a670a2b28b766451a81adfc80f3
parent22e0d65d4ef9c04f8381a8a5ecfafd2dcef9df1d
"cast(Foo) foo" gets a maybe type only if Foo is a class

For pointers, no check is made whether the type is correct, so the
result never becomes null.
dmd2/expression.c