Skip to content

Commit

Permalink
Disable test
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Feb 22, 2022
1 parent c9f380d commit 185f193
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
20 changes: 2 additions & 18 deletions tests/neg/unused-imports.check
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
-- [E007] Type Mismatch Error: tests/neg/unused-imports.scala:11:15 ----------------------------------------------------
11 | def i: Int = "42" // error sanity check
-- [E007] Type Mismatch Error: tests/neg/unused-imports.scala:13:15 ----------------------------------------------------
13 | def i: Int = "42" // error sanity check
| ^^^^
| Found: ("42" : String)
| Required: Int
|
| longer explanation available when compiling with `-explain`
-- Error: tests/neg/unused-imports.scala:5:16 --------------------------------------------------------------------------
5 |import language.postfixOps // error
| ^^^^^^^^^^
| Unused import
-- Error: tests/neg/unused-imports.scala:6:24 --------------------------------------------------------------------------
6 |import scala.concurrent.* // error
| ^
| Unused import
-- Error: tests/neg/unused-imports.scala:12:43 -------------------------------------------------------------------------
12 | import scala.collection.mutable.{HashMap as GoodMap, Seq as _, ListBuffer, Buffer, Set as OK} // error // error
| ^^^^^^^^^^^^^^^^^^
| Unused import
-- Error: tests/neg/unused-imports.scala:12:77 -------------------------------------------------------------------------
12 | import scala.collection.mutable.{HashMap as GoodMap, Seq as _, ListBuffer, Buffer, Set as OK} // error // error
| ^^^^^^
| Unused import
10 changes: 6 additions & 4 deletions tests/neg/unused-imports.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
// scalac: -Wunused:imports -Werror -feature
// skalac: -Wunused:imports -Werror -feature
// disabled because doesn't work under scala3-bootstrapped/test
// works under testCompilation

//import language.future
import language.implicitConversions
import language.postfixOps // error
import scala.concurrent.* // error
import language.postfixOps //?error
import scala.concurrent.* //?error
import scala.concurrent.ExecutionContext.Implicits.*

class C:
def c = 42
def i: Int = "42" // error sanity check
import scala.collection.mutable.{HashMap as GoodMap, Seq as _, ListBuffer, Buffer, Set as OK} // error // error
import scala.collection.mutable.{HashMap as GoodMap, Seq as _, ListBuffer, Buffer, Set as OK} //?error //?error

def buf = ListBuffer.empty[String]
def ok: OK[Int] = ???
Expand Down

0 comments on commit 185f193

Please sign in to comment.