Skip to content

Commit 3360130

Browse files
committed
Address reviewers comments.
1 parent 74aef53 commit 3360130

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/dotty/language.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ object language {
66

77
/** Keep union types */
88
val keepUnions = new Feature
9-
10-
val f = "".contains("", (_: Int))
11-
129
}

tests/pos/t2913.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object TestNoAutoTupling {
1818
a.foo()
1919
a.foo(1)
2020

21-
a.foo("") // Without implicits, a type error regarding invalid argument types is generated at `""`. This is
21+
a.foo("") // Without implicits, a type error regarding invalid argument types is generated at `""`. This is
2222
// the same position as an argument, so the 'second try' typing with an Implicit View is tried,
2323
// and AToRichA(a).foo("") is found.
2424
//
@@ -29,7 +29,6 @@ object TestNoAutoTupling {
2929

3030
a.foo("a", "b") // Without implicits, a type error regarding invalid arity is generated at `foo(<error>"", "")`.
3131
// Typers#tryTypedApply:3274 only checks if the error is as the same position as `foo`, `"a"`, or `"b"`.
32-
// None of these po
3332
}
3433

3534
// t0851 is essentially the same:
@@ -54,7 +53,7 @@ object Main {
5453
}
5554
}
5655

57-
object TestWithAutoTuling {
56+
object TestWithAutoTupling {
5857

5958
implicit def AToRichA(a: A): RichA = new RichA
6059

@@ -73,6 +72,5 @@ object TestWithAutoTuling {
7372

7473
a.foo("a", "b") // Without implicits, a type error regarding invalid arity is generated at `foo(<error>"", "")`.
7574
// Typers#tryTypedApply:3274 only checks if the error is as the same position as `foo`, `"a"`, or `"b"`.
76-
// None of these po
7775
}
7876

0 commit comments

Comments
 (0)