summaryrefslogtreecommitdiff
path: root/test/files/neg/unchecked-knowable.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/unchecked-knowable.check')
-rw-r--r--test/files/neg/unchecked-knowable.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/unchecked-knowable.check b/test/files/neg/unchecked-knowable.check
new file mode 100644
index 0000000000..28e2d67920
--- /dev/null
+++ b/test/files/neg/unchecked-knowable.check
@@ -0,0 +1,6 @@
+unchecked-knowable.scala:17: warning: fruitless type test: a value of type Bippy cannot also be a A1
+ /* warn */ (new Bippy).isInstanceOf[A1]
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found