提交 418a61c3 编写于 作者: 梦境迷离's avatar 梦境迷离

add test

上级 4d722a87
......@@ -24,6 +24,13 @@ class ApplyTest extends FlatSpec with Matchers {
@apply
@toString class B2(int: Int, val j: Int, var k: Option[String] = None, t: Option[Long] = Some(1L))
println(B2(1, 2))
// exists object
"""@apply @toString class B(int: Int, val j: Int, var k: Option[String] = None, t: Option[Long] = Some(1L));object B3""" should compile
@apply
@toString class B3(int: Int, val j: Int, var k: Option[String] = None, t: Option[Long] = Some(1L))
object B3
println(B3(1, 2))
}
"apply2" should "failed at class" in {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册