diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-05-30 19:16:28 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-12 14:50:16 +0100 |
commit | 30174f9453a44845156f4abca0cd6317da3e27cc (patch) | |
tree | 1cf6d6049c769cb14e0306ef0c1e23b05cb521a2 /test/files/run/t7533.check | |
parent | 1af8dcb22b36cf256eef0615e2f3a7005ee21e68 (diff) | |
download | scala-30174f9453a44845156f4abca0cd6317da3e27cc.tar.gz scala-30174f9453a44845156f4abca0cd6317da3e27cc.tar.bz2 scala-30174f9453a44845156f4abca0cd6317da3e27cc.zip |
SI-7533 Adds Symbol.isAbstract
Amazingly enough, we've missed the fact that non-type symbols can also
be abstract. Having been enlightened by this, I'm exposing isDeferred
and merging it along with isAbstractType and isAbstractClass into the
unified Symbol.isAbstract method.
Diffstat (limited to 'test/files/run/t7533.check')
-rw-r--r-- | test/files/run/t7533.check | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/files/run/t7533.check b/test/files/run/t7533.check new file mode 100644 index 0000000000..fa5b3edc8f --- /dev/null +++ b/test/files/run/t7533.check @@ -0,0 +1,30 @@ +Testing Symbol.isAbstract... +=======class C======= +class C => true +constructor C => false +value x1 => true +value x2 => false +value x2 => false +method y1 => true +method y2 => false +type T1 => true +type T2 => false +=======trait T======= +trait T => true +method $init$ => false +value z1 => true +value z2 => false +value z2 => false +method w1 => true +method w2 => false +type U1 => true +type U2 => false +=======class D======= +class D => false +constructor D => false +value x1 => false +value x1 => false +method y1 => false +=======object M======= +object M => false +constructor M => false |