File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
scalac-scoverage-plugin/src/test/scala/scoverage Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ class PluginCoverageTest
293293 compiler.assertNoCoverage()
294294 }
295295
296- test (" plugin should handle return inside catch github.com/scoverage/scalac-scoverage-plugin/issues/93" ) {
296+ ignore (" plugin should handle return inside catch github.com/scoverage/scalac-scoverage-plugin/issues/93" ) {
297297 val compiler = ScoverageCompiler .default
298298 compiler.compileCodeSnippet(
299299 """
You can’t perform that action at this time.
0 commit comments