Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9824 from tribbloid/YDebugError/dev1
- Loading branch information
Showing
5 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
newSource1.scala:3: error: object dummy is not a member of package org | ||
val a: org.dummy.Dummy = ??? | ||
^ | ||
java.lang.Exception: Stack trace | ||
java.lang.Exception: Stack trace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// filter: (\s*)at(.*) | ||
|
||
import scala.tools.partest._ | ||
|
||
object Test extends DirectTest { | ||
override def extraSettings: String = "-usejavacp -Vdebug-type-error" | ||
|
||
def code: String = "" | ||
|
||
def noSuchType: String = """ | ||
object Example | ||
{ | ||
val a: org.dummy.Dummy = ??? | ||
} | ||
""" | ||
|
||
def show(): Unit = { | ||
val global = newCompiler() | ||
|
||
def run(code: String): Unit = | ||
compileString(global)(code.trim) | ||
|
||
run(noSuchType) | ||
} | ||
} |