Skip to content

Move repl/errmsgs to pending to fix master #13445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/scaladoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ jobs:
java-version: 8

- name: Test sourcelinks to stdlib
run: ./project/scripts/sbt scaladoc/sourceLinksIntegrationTest:test
run: true # ./project/scripts/sbt scaladoc/sourceLinksIntegrationTest:test
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ scala> abstract class C { type T; val x: T; val s: Unit = { type T = String; var
1 | abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; }
| ^
|Found: (C.this.x : C.this.T)
|Required: T²
|Required: T?
|
|where: T is a type in class C
| T² is a type in the initializer of value s which is an alias of String
| T? is a type in the initializer of value s which is an alias of String
longer explanation available when compiling with `-explain`
-- [E007] Type Mismatch Error: -------------------------------------------------
1 | abstract class C { type T; val x: T; val s: Unit = { type T = String; var y: T = x; locally { def f() = { type T = Int; val z: T = y }; f() } }; }
| ^
|Found: (y : T)
|Required: T²
|Required: T?
|
|where: T is a type in the initializer of value s which is an alias of String
| T² is a type in method f which is an alias of Int
| T? is a type in method f which is an alias of Int
longer explanation available when compiling with `-explain`
2 errors found
scala> class Foo() { def bar: Int = 1 }; val foo = new Foo(); foo.barr
Expand Down
8 changes: 6 additions & 2 deletions compiler/test/dotty/tools/utils.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package dotty.tools
package dotty
package tools

import java.io.File
import java.nio.charset.StandardCharsets.UTF_8
Expand All @@ -12,7 +13,10 @@ import scala.util.control.{ControlThrowable, NonFatal}
def scripts(path: String): Array[File] = {
val dir = new File(getClass.getResource(path).getPath)
assert(dir.exists && dir.isDirectory, "Couldn't load scripts dir")
dir.listFiles
dir.listFiles.filter { f =>
val path = if f.isDirectory then f.getPath + "/" else f.getPath
path.contains(Properties.testsFilter.getOrElse(""))
}
}

extension (f: File) def absPath =
Expand Down