File tree 1 file changed +11
-10
lines changed
scalac-scoverage-plugin/src/test/scala/scoverage
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,16 @@ class PluginASTSupportTest
105
105
assert(! compiler.reporter.hasWarnings)
106
106
}
107
107
108
- // test("type param with default arg supported") {
109
- // compileCodeSnippet( """ class TypeTreeObjects {
110
- // | class Container {
111
- // | def typeParamAndDefaultArg[C](name: String = "sammy"): String = name
112
- // | }
113
- // | new Container().typeParamAndDefaultArg[Any]()
114
- // | } """.stripMargin)
115
- // assert(!reporter.hasErrors)
116
- // assert(!reporter.hasWarnings)
117
- // }
108
+ test(" type param with default arg supported" ) {
109
+ val compiler = ScoverageCompiler .default
110
+ compiler.compileCodeSnippet( """ class TypeTreeObjects {
111
+ | class Container {
112
+ | def typeParamAndDefaultArg[C](name: String = "sammy"): String = name
113
+ | }
114
+ | new Container().typeParamAndDefaultArg[Any]()
115
+ |} """ .stripMargin)
116
+ assert(! compiler.reporter.hasErrors)
117
+ assert(! compiler.reporter.hasWarnings)
118
+ }
118
119
}
119
120
You can’t perform that action at this time.
0 commit comments