summaryrefslogtreecommitdiff
path: root/test/files/neg/unchecked-knowable.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-10-31 10:59:03 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-10-31 10:59:03 -0700
commit290220bc6f5e1a11e38c67eb3e51ec617f96a1f6 (patch)
treef2ec688d5b9dedaf4b93121d70401e629867ed18 /test/files/neg/unchecked-knowable.scala
parent1f9124b74566efe82e1c4f8d33fcd8618ea0f599 (diff)
parent8aec78470637f42f50981f8034215a709602dbad (diff)
downloadscala-290220bc6f5e1a11e38c67eb3e51ec617f96a1f6.tar.gz
scala-290220bc6f5e1a11e38c67eb3e51ec617f96a1f6.tar.bz2
scala-290220bc6f5e1a11e38c67eb3e51ec617f96a1f6.zip
Merge pull request #1546 from paulp/merge-2.10.0-wip
Merge 2.10.0-wip into 2.10.x.
Diffstat (limited to 'test/files/neg/unchecked-knowable.scala')
-rw-r--r--test/files/neg/unchecked-knowable.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/neg/unchecked-knowable.scala b/test/files/neg/unchecked-knowable.scala
index 667b47f504..21624c4fb4 100644
--- a/test/files/neg/unchecked-knowable.scala
+++ b/test/files/neg/unchecked-knowable.scala
@@ -7,6 +7,7 @@ final class A4 extends A2
/** Unknowable */
sealed abstract class B1
sealed abstract class B2 extends B1
+sealed trait B2B extends B1
final class B3 extends B1
trait B4 extends B2
@@ -15,6 +16,7 @@ trait Dingus
class A {
/* warn */ (new Bippy).isInstanceOf[A1]
- /* nowarn */ (new Bippy).isInstanceOf[B1]
+ /* warn */ (new Bippy).isInstanceOf[B1]
+ /* nowarn */ (null: Dingus).isInstanceOf[B1]
/* nowarn */ ((new Bippy): Any).isInstanceOf[A1]
}