diff options
Diffstat (limited to 'tests/neg/i2030.scala')
-rw-r--r-- | tests/neg/i2030.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/neg/i2030.scala b/tests/neg/i2030.scala new file mode 100644 index 000000000..2d049f4e6 --- /dev/null +++ b/tests/neg/i2030.scala @@ -0,0 +1,5 @@ +// This used to take ~12s, the check should be that +// it runs in reasonable time (i.e. instantaneous). +object a { + val x: String | Int = 'a // error +} |