diff options
author | liu fengyun <liu@fengy.me> | 2016-11-28 09:43:03 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2016-11-28 13:04:43 +0100 |
commit | 8f3301e48ed82dbfc316082d293849a45e187d13 (patch) | |
tree | c5ef54f46ed3fc0411b694a591f67a13a2e57fdc /tests/run/i1748.scala | |
parent | 74cee6abb41bf84bd5c037a64ad96d9987746703 (diff) | |
download | dotty-8f3301e48ed82dbfc316082d293849a45e187d13.tar.gz dotty-8f3301e48ed82dbfc316082d293849a45e187d13.tar.bz2 dotty-8f3301e48ed82dbfc316082d293849a45e187d13.zip |
make test runnable
Diffstat (limited to 'tests/run/i1748.scala')
-rw-r--r-- | tests/run/i1748.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run/i1748.scala b/tests/run/i1748.scala new file mode 100644 index 000000000..bb3df1336 --- /dev/null +++ b/tests/run/i1748.scala @@ -0,0 +1,14 @@ +object Test { + implicit class Foo(sc: StringContext) { + object q { + def unapply(arg: Any): Option[(Any, Any)] = + Some((sc.parts(0), sc.parts(1))) + } + } + + def main(args: Array[String]): Unit = { + val q"class $name extends $parent" = new Object + println(name) + println(parent) + } +}
\ No newline at end of file |