diff options
Diffstat (limited to 'tests/untried/neg/unchecked-knowable.check')
-rw-r--r-- | tests/untried/neg/unchecked-knowable.check | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/unchecked-knowable.check b/tests/untried/neg/unchecked-knowable.check new file mode 100644 index 000000000..327a5f202 --- /dev/null +++ b/tests/untried/neg/unchecked-knowable.check @@ -0,0 +1,9 @@ +unchecked-knowable.scala:18: warning: fruitless type test: a value of type Bippy cannot also be a A1 + /* warn */ (new Bippy).isInstanceOf[A1] + ^ +unchecked-knowable.scala:19: warning: fruitless type test: a value of type Bippy cannot also be a B1 + /* warn */ (new Bippy).isInstanceOf[B1] + ^ +error: No warnings can be incurred under -Xfatal-warnings. +two warnings found +one error found |