This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.language.reflectiveCalls | |
// for the story behind this snippet of code see: | |
// http://stackoverflow.com/questions/13185405/structural-subtyping-reflection | |
// requires Scala 2.10.0-RC1 or higher | |
// you also need to have scala-reflect.jar and scala-compiler.jar on your classpath | |
import scala.reflect.runtime.universe._ | |
object Test extends App { |