Skip to content

Commit 759b612

Browse files
committed
Uncomment test in PluginASTSupport
1 parent a458cc5 commit 759b612

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

scalac-scoverage-plugin/src/test/scala/scoverage/PluginASTSupportTest.scala

+11-10
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,16 @@ class PluginASTSupportTest
105105
assert(!compiler.reporter.hasWarnings)
106106
}
107107

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+
}
118119
}
119120

0 commit comments

Comments
 (0)