【发布时间】:2011-01-30 18:46:42
【问题描述】:
标题基本上就是这样。
有没有办法使用 e 的类型。 G。 new Object {def foo = "bar"} 在 isInstanceOf[<structural_type_here>] 通话中?
【问题讨论】:
-
请参阅stackoverflow.com/questions/1988181/… 以获得一些提示。
标签: reflection scala types instanceof structural-typing