diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-07-12 17:03:03 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-07-12 17:03:03 +0000 |
commit | ada6cccb3587d6d51703e385faba85d8694c9ccd (patch) | |
tree | 477915b8f63712bac38867db3847df7aba040be5 /test | |
parent | 6af63c520327acf1424cc82555f9b858d9c260f3 (diff) | |
download | scala-ada6cccb3587d6d51703e385faba85d8694c9ccd.tar.gz scala-ada6cccb3587d6d51703e385faba85d8694c9ccd.tar.bz2 scala-ada6cccb3587d6d51703e385faba85d8694c9ccd.zip |
Closes #3653.
no review
Author: Mark Harrah <dmharrah@gmail.com>
Date: Thu Jul 8 10:30:57 2010 -0400
Source: http://github.com/harrah/scala-starrless/commit/0c7759c95b47cebc6d9fa77cefd34ef638e2706e
Reviewer: moors
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t3653.check | 7 | ||||
-rw-r--r-- | test/files/neg/t3653.scala | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t3653.check b/test/files/neg/t3653.check new file mode 100644 index 0000000000..ac6e2ca9dc --- /dev/null +++ b/test/files/neg/t3653.check @@ -0,0 +1,7 @@ +t3653.scala:3: error: double definition: +method x:(implicit x: Int)Int and +method x:(i: Int)Int at line 2 +have same type after erasure: (x: Int)Int + def x(implicit x: Int) = 5 + ^ +one error found diff --git a/test/files/neg/t3653.scala b/test/files/neg/t3653.scala new file mode 100644 index 0000000000..96cf96008a --- /dev/null +++ b/test/files/neg/t3653.scala @@ -0,0 +1,4 @@ +class B { + def x(i: Int) = 3 + def x(implicit x: Int) = 5 +}
\ No newline at end of file |