diff options
author | Enno Runne <enno@runne.net> | 2017-03-07 20:05:28 +0100 |
---|---|---|
committer | Enno Runne <enno@runne.net> | 2017-03-07 20:05:28 +0100 |
commit | 98465f930fe5d3f10401c454d6655da71243b923 (patch) | |
tree | 42888e27a553888a21628090e6aab562a96d8c83 /compiler/test/dotty | |
parent | c3ec6dfbdeadb2fc9e7ac191b4c1a4d6838e8a5b (diff) | |
download | dotty-98465f930fe5d3f10401c454d6655da71243b923.tar.gz dotty-98465f930fe5d3f10401c454d6655da71243b923.tar.bz2 dotty-98465f930fe5d3f10401c454d6655da71243b923.zip |
Analysis of overloaded or recursive is harder than expected
Fall-back to reporting "overloaded or recursive needs type".
Diffstat (limited to 'compiler/test/dotty')
-rw-r--r-- | compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala b/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala index 0c40ec477..f11c6dd96 100644 --- a/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala +++ b/compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala @@ -227,11 +227,11 @@ class ErrorMessagesTests extends ErrorMessagesTest { val defn = ictx.definitions assertMessageCount(1, messages) - val OverloadedMethodNeedsResultType(tree) :: Nil = messages + val OverloadedOrRecursiveMethodNeedsResultType(tree) :: Nil = messages assertEquals("foo", tree.show) } - @Test @Ignore def recursiveMethodNeedsReturnType = + @Test def recursiveMethodNeedsReturnType = checkMessagesAfter("frontend") { """ |class Scope() { @@ -244,7 +244,7 @@ class ErrorMessagesTests extends ErrorMessagesTest { val defn = ictx.definitions assertMessageCount(1, messages) - val RecursiveMethodNeedsResultType(tree) :: Nil = messages + val OverloadedOrRecursiveMethodNeedsResultType(tree) :: Nil = messages assertEquals("i", tree.show) } |