File tree 4 files changed +6
-8
lines changed
scalafix-core/src/main/scala/scalafix/v0
scalafix-tests/integration/src/main/scala/test
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ object Mima {
9
9
ProblemFilters .exclude[Problem ](" scalafix.internal.*" ),
10
10
ProblemFilters .exclude[Problem ](" scala.meta.internal.*" ),
11
11
// Exceptions
12
- ProblemFilters .exclude[DirectMissingMethodProblem ](" scalafix.Versions.scala211 " )
12
+ ProblemFilters .exclude[DirectMissingMethodProblem ](" scalafix.v0.Signature#Self.syntax " )
13
13
)
14
14
}
15
15
}
Original file line number Diff line number Diff line change @@ -50,10 +50,8 @@ object Signature {
50
50
}
51
51
52
52
final case class Self (name : String ) extends Signature {
53
- override def syntax =
54
- throw new UnsupportedOperationException (
55
- " No longer supported."
56
- ) // scalafix:ok
53
+ override def syntax : String =
54
+ throw new UnsupportedOperationException (" No longer supported." )
57
55
override def structure : String = s """ Signature.Self(" $name") """
58
56
override def toString : String = syntax
59
57
}
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ package test
4
4
object DenotationOpsTest {
5
5
def m (x : Int , y : String ): List [String ] = List (y)
6
6
var x = true
7
- val y = m(42 , " hey" )
7
+ private val y = m(42 , " hey" )
8
8
}
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ package test
3
3
4
4
class TypesTest {
5
5
val a = 42
6
- val b = List (42 )
6
+ private val b = List (42 )
7
7
class Inner
8
8
val c = new TypesTest
9
9
val d = new c.Inner
10
- val e = null .asInstanceOf [TypesTest # Inner ]
10
+ private val e = null .asInstanceOf [TypesTest # Inner ]
11
11
val f : {
12
12
def foo (a : Int ): Int
13
13
def bar (a : Int ): Int
You can’t perform that action at this time.
0 commit comments