Created
August 23, 2012 11:58
-
-
Save gkojax/3435999 to your computer and use it in GitHub Desktop.
2.10.0-M7でマクロを使うのにlibraryDependenciesの追加が必要だった
This file contains hidden or 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 sbt._ | |
import sbt.Keys._ | |
object Scala210Build extends Build { | |
lazy val scala210 = Project( | |
id = "scala-210", | |
base = file("."), | |
settings = Project.defaultSettings ++ Seq( | |
name := "Scala 210", | |
organization := "org.example", | |
version := "1.0", | |
scalaVersion := "2.10.0-M7", | |
// add other settings here | |
libraryDependencies <+= scalaVersion { v => "org.scala-lang" % "scala-reflect" % v } | |
) | |
) | |
} |
This file contains hidden or 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
package org.example | |
import scala.reflect.macros.Context | |
// import scala.reflect.makro.Context じゃなくて | |
import language.experimental.macros | |
import collection.mutable.ListBuffer | |
import collection.mutable.Stack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment