diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-17 12:03:50 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-17 12:03:50 -0800 |
commit | df75794426236186dcef0dfd1a72ad55d7b870c2 (patch) | |
tree | af913fade680f61afc17282c3ad798e09aae8426 /test/files/neg | |
parent | a5b0fc49e517d1c63d22f9909ac9bed0552ed466 (diff) | |
parent | a1c00ae4b2df051c33384269b6b983746e537aee (diff) | |
download | scala-df75794426236186dcef0dfd1a72ad55d7b870c2.tar.gz scala-df75794426236186dcef0dfd1a72ad55d7b870c2.tar.bz2 scala-df75794426236186dcef0dfd1a72ad55d7b870c2.zip |
Merge pull request #3283 from paulp/pr/dotless-targs
Dotless type application for infix operators.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/dotless-targs.check | 4 | ||||
-rw-r--r-- | test/files/neg/dotless-targs.scala | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/dotless-targs.check b/test/files/neg/dotless-targs.check new file mode 100644 index 0000000000..4aab939f61 --- /dev/null +++ b/test/files/neg/dotless-targs.check @@ -0,0 +1,4 @@ +dotless-targs.scala:2: error: type application is not allowed for postfix operators + def f1 = "f1" isInstanceOf[String] // not ok + ^ +one error found diff --git a/test/files/neg/dotless-targs.scala b/test/files/neg/dotless-targs.scala new file mode 100644 index 0000000000..eff63cbec4 --- /dev/null +++ b/test/files/neg/dotless-targs.scala @@ -0,0 +1,5 @@ +class A { + def f1 = "f1" isInstanceOf[String] // not ok + def f2 = "f2".isInstanceOf[String] // ok + def f3 = "f3" toList // ok +} |