Skip to content

Commit 26576dc

Browse files
committed
Fix neg tests
1 parent cf2f18c commit 26576dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/neg/i1802.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ object Exception {
1414
def apply(x: Throwable): T = f(downcast(x).get)
1515
}
1616

17-
def mkThrowableCatcher[T](isDef: Throwable => Boolean, f: Throwable => T) = mkCatcher(isDef, f) // error: undetermined ClassTag
17+
def mkThrowableCatcher[T](isDef: Throwable => Boolean, f: Throwable => T) = mkCatcher(isDef, f)
1818

1919
implicit def throwableSubtypeToCatcher[Ex <: Throwable: ClassTag, T](pf: PartialFunction[Ex, T]) = // error: result type needs to be given
2020
mkCatcher(pf.isDefinedAt _, pf.apply _) // error: method needs return type

tests/neg/undet-classtag.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.reflect.ClassTag
33
object Test {
44
def f[T: reflect.ClassTag](x: T) = ???
55

6-
f(???) // error: undetermined ClassTag
6+
f(???)
77
}
88

99
// SI 9754
@@ -22,6 +22,6 @@ object Program {
2222

2323
// SI 5353
2424
object t5353 {
25-
if (false) Array("qwe") else Array() // error: undetermined ClassTag
25+
if (false) Array("qwe") else Array()
2626
}
2727

0 commit comments

Comments
 (0)