Make all *.scala *.sbt *.txt *.md *.yml and README files end in a newline
This commit is contained in:
parent
e40c95e6e5
commit
5d72bd0b07
|
@ -33,4 +33,4 @@ Licenses
|
|||
Scala is licensed under the standard 3-clause BSD license,
|
||||
included in the distribution as the file `doc/LICENSE.md`.
|
||||
The licenses of the software included in the Scala distribution can
|
||||
be found in the `doc/licenses` directory.
|
||||
be found in the `doc/licenses` directory.
|
||||
|
|
|
@ -28,4 +28,4 @@ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
THE POSSIBILITY OF SUCH DAMAGE.
|
||||
THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
|
|
@ -19,4 +19,4 @@ object AutomaticModuleName {
|
|||
Osgi.headers += pair
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,4 +51,4 @@ object ParserUtil {
|
|||
Completions.strict(xs.map(x => Completion.tokenDisplay(x.stripPrefix(seen), x)).toSet)
|
||||
})).filter(!_.startsWith("-"), x => x)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,4 +44,4 @@ trait Aliases {
|
|||
implicit class RichOpenImplicit(oi: universe.analyzer.OpenImplicit) {
|
||||
def toImplicitCandidate = ImplicitCandidate(oi.info.pre, oi.info.sym, oi.pt, oi.tree)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,4 +56,4 @@ trait Internals extends scala.tools.nsc.transform.TypingTransformers {
|
|||
trans.atOwner(owner)(trans.transform(tree))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,4 +52,4 @@ trait Names {
|
|||
|
||||
def freshName[NameType <: Name](name: NameType): NameType =
|
||||
name.mapName(freshName(_)).asInstanceOf[NameType]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,4 +47,4 @@ trait JavaReflectionRuntimes {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@ package scala.reflect.macros
|
|||
|
||||
package object runtime {
|
||||
type Context = scala.reflect.macros.contexts.Context
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,4 @@ trait StdAttachments {
|
|||
}
|
||||
|
||||
case class ReifyAliasAttachment(sym: Symbol, alias: TermName)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ trait Utils extends NodePrinters
|
|||
val reifyDebug = global.settings.Yreifydebug.value
|
||||
val reifyCopypaste = global.settings.Yreifycopypaste.value
|
||||
val reifyTrace = scala.tools.nsc.util.trace when reifyDebug
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,4 +39,4 @@ trait Parsing { self : Positions with Reporting =>
|
|||
if (incompleteHandled) incompleteHandler(pos, msg)
|
||||
else reporter.error(pos, msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,4 +18,4 @@ package ast.parser
|
|||
* @param inserted If true, brace needs to be inserted, otherwise brace needs to be deleted.
|
||||
*/
|
||||
case class BracePatch(off: Int, inserted: Boolean)
|
||||
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))
|
||||
extends Patch(off, if (inserted) Insertion("{") else Deletion(1))
|
||||
|
|
|
@ -151,4 +151,4 @@ object ThreadPoolFactory {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ import scala.tools.nsc.Global
|
|||
* reflect specific traits are initialized */
|
||||
private[reflect] trait ReflectSetup { this: Global =>
|
||||
phase = new Run().typerPhase
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,4 +24,4 @@ private[tests] object ConsoleReporter extends Reporter {
|
|||
/** Reporter that swallows all passed message. */
|
||||
private[tests] object NullReporter extends Reporter {
|
||||
def println(msg: Any): Unit = {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ private[tests] trait TestResources extends TestSettings {
|
|||
protected lazy val sourceFiles: Array[SourceFile] = SourcesCollector(baseDir / sourceDir, isScalaOrJavaSource)
|
||||
|
||||
private def isScalaOrJavaSource(file: Path): Boolean = file.extension == "scala" | file.extension == "java"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Source files under this directory cannot be compiled by normal means.
|
||||
|
||||
They exist for bootstrapping and documentation purposes.
|
||||
They exist for bootstrapping and documentation purposes.
|
||||
|
|
|
@ -56,4 +56,4 @@ package scala
|
|||
*
|
||||
* See also [[https://docs.scala-lang.org/sips/42.type.html SIP-23 about Literal-based Singleton Types]].
|
||||
*/
|
||||
final trait Singleton extends Any
|
||||
final trait Singleton extends Any
|
||||
|
|
|
@ -73,4 +73,4 @@ trait IsIterableOnceLowPriority {
|
|||
isIterableLike: IsIterable[Repr]
|
||||
): IsIterableOnce[Repr] { type A = isIterableLike.A } = isIterableLike
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1758,4 +1758,4 @@ private[immutable] final class HashMapBuilder[K, V] extends ReusableBuilder[(K,
|
|||
}
|
||||
|
||||
private[collection] def size: Int = rootNode.size
|
||||
}
|
||||
}
|
||||
|
|
|
@ -188,4 +188,4 @@ private[concurrent] object BatchingExecutorStatics {
|
|||
* By default it tests the Runnable for being an instance of [Batchable].
|
||||
**/
|
||||
protected def batchable(runnable: Runnable): Boolean = runnable.isInstanceOf[Batchable]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ package reflect
|
|||
// @deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
|
||||
object NoManifest extends OptManifest[Nothing] with Serializable {
|
||||
override def toString = "<?>"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ package reflect
|
|||
*/
|
||||
// TODO undeprecated until Scala reflection becomes non-experimental
|
||||
// @deprecated("This notion doesn't have a corresponding concept in 2.10, because scala.reflect.runtime.universe.TypeTag can capture arbitrary types. Use type tags instead of manifests, and there will be no need in opt manifests.", "2.10.0")
|
||||
trait OptManifest[+T] extends Serializable
|
||||
trait OptManifest[+T] extends Serializable
|
||||
|
|
|
@ -76,4 +76,4 @@ object Util {
|
|||
implicit class ArrayDeep(val a: Array[_]) extends AnyVal {
|
||||
def deep: collection.IndexedSeq[Any] = prettyArray(a)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,4 +68,4 @@ trait JavaUniverse extends Universe { self =>
|
|||
* @group JavaMirrors
|
||||
*/
|
||||
def runtimeMirror(cl: ClassLoader): Mirror
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,4 +57,4 @@ package object api {
|
|||
// todo. once we have implicit macros for tag generation, we can remove these anchors
|
||||
private[scala] def materializeWeakTypeTag[T](u: ApiUniverse): u.WeakTypeTag[T] = macro ???
|
||||
private[scala] def materializeTypeTag[T](u: ApiUniverse): u.TypeTag[T] = macro ???
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,4 @@ trait StdCreators {
|
|||
if (m eq mirror) tpe.asInstanceOf[U # Type]
|
||||
else throw new IllegalArgumentException(s"Type tag defined in $mirror cannot be migrated to other mirrors.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,4 +86,4 @@ trait Context extends blackbox.Context {
|
|||
* and always stays the same regardless of whatever happens during macro expansion.
|
||||
*/
|
||||
def enclosingImplicits: List[ImplicitCandidate]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ trait Universer extends Generator {
|
|||
universeField != null
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -167,4 +167,4 @@ class BitManipulationBenchmark {
|
|||
if (remaining >= 4) { remaining >>>= 2; exponent -= 2 }
|
||||
if (remaining >= 2) exponent - 1 else exponent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,4 +34,4 @@ class SizeCompareOpsBenchmark {
|
|||
@Benchmark def sizeComparePretty: Any = {
|
||||
values.sizeIs == cmpTo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ class ListMapBenchmark {
|
|||
val b = new ListMapBuilder[Int, Int]
|
||||
bh.consume(b.addAll(kvs).result())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -392,4 +392,4 @@ class CallbackFutureBenchmark extends OpFutureBenchmark {
|
|||
post_p.complete(aSuccess)
|
||||
callback.await()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,4 +90,4 @@ class ClassTagBenchmark {
|
|||
if (null != x && (ct.runtimeClass.isInstance(x))) Some(x)
|
||||
else None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,4 +53,4 @@ class RegexUnapplyBenchmark {
|
|||
|
||||
bh.consume(z)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,4 +34,4 @@ class RegexUnapplyGroupsBenchmark {
|
|||
|
||||
bh.consume(res)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -339,4 +339,4 @@ object LocalAndAnonymousInLazyInitializer {
|
|||
AA
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -141,4 +141,4 @@ trait TestUtil {
|
|||
val x1 = x.toString.replaceAll("@[0-9a-z]+$", "")
|
||||
println("x="+x1+", t="+t1+", k="+t1.tpe.asInstanceOf[Product].productPrefix+", s="+t1.tpe.typeSymbol.toString)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ object Test extends BytecodeTest {
|
|||
println(s"$boxunbox $checkcast $instanceof")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,4 @@ object Matchbox {
|
|||
case (x: Int, y: Long) => x + y
|
||||
case _ => 20
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,4 +6,4 @@ class SameBytecode {
|
|||
def b = foo(a = 0, "")
|
||||
def c = foo(0, b = "")
|
||||
def d = foo(a = 0, b = "")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ object Test extends App {
|
|||
import JsonEncoderInstances._
|
||||
|
||||
implicitly[JsonEncoder[List[String]]].encode("" :: Nil)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ object Test extends App {
|
|||
println(ctor.getParameters.map(_.getParameterizedType).toList)
|
||||
println(ctor.getGenericParameterTypes.toList)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class Test2 extends Test1[Test3[Test4]]
|
||||
class Test4
|
||||
object Test extends App {}
|
||||
object Test extends App {}
|
||||
|
|
|
@ -22,4 +22,4 @@ class X {
|
|||
val oImpl = new OuterImpl(this)
|
||||
new oImpl.Inner
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,4 +20,4 @@ object Test extends BytecodeTest {
|
|||
(node.getOpcode == opcode)
|
||||
insnList.iterator.asScala.count(isNop)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import foo.AbstractProps
|
||||
|
||||
class Props extends AbstractProps
|
||||
class Props extends AbstractProps
|
||||
|
|
|
@ -1 +1 @@
|
|||
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }
|
||||
class Unimplemented extends scala.collection.IterableOps[String, List, List[String]] { }
|
||||
|
|
|
@ -12,4 +12,4 @@ trait Xyz[T] {
|
|||
|
||||
trait Bippy[T1, T2, T3] extends collection.IterableOps[(T2, String), List, List[(T2, String)]] with Xyz[T3]
|
||||
|
||||
class Dingus extends Bippy[String, Set[Int], List[Int]]
|
||||
class Dingus extends Bippy[String, Set[Int], List[Int]]
|
||||
|
|
|
@ -1 +1 @@
|
|||
class HotDog
|
||||
class HotDog
|
||||
|
|
|
@ -1 +1 @@
|
|||
class hotDog
|
||||
class hotDog
|
||||
|
|
|
@ -10,4 +10,4 @@ package bar {
|
|||
class Innocent extends A(5)
|
||||
case class Dingus(y: Int) extends Innocent
|
||||
case object Hungle extends Blameless(5)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
object Test extends App {
|
||||
def foo[T] = Array[T]()
|
||||
println(foo[Int].getClass)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ object Test extends App {
|
|||
def mkArray[T: ClassTag] = Array[T]()
|
||||
def foo[T] = mkArray[T]
|
||||
println(foo[Int].getClass)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ object Test extends App {
|
|||
def mkArray[T] = Array[T]()
|
||||
def foo[T: ClassTag] = mkArray[T]
|
||||
println(foo[Int].getClass)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ import scala.reflect.runtime.universe._
|
|||
|
||||
object Test extends App {
|
||||
def foo[T: TypeTag] = Array[T]()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,4 +73,4 @@ class placebo extends scala.annotation.StaticAnnotation
|
|||
@placebo
|
||||
class Test {
|
||||
@placebo def x = (2: @placebo)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ object Test extends App {
|
|||
val fortyTwo = 42
|
||||
val ignored3 = reify(fortyTwo).splice
|
||||
val ignored4 = reify(fortyTwo).value
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ object Test {
|
|||
def precise0(y: x.type)(x: String): Unit = {}
|
||||
def precise1(x: String, y: x.type): Unit = {}
|
||||
def precise2[T <: y.type](y: String): Unit = {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
class C /* noerror */
|
||||
object O /* noerror */
|
||||
object O /* noerror */
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
class C
|
||||
object O
|
||||
object O
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
object Test {
|
||||
def foo(x: AnyRef): x.type = x
|
||||
val x: Any => Any = foo
|
||||
}
|
||||
}
|
||||
|
|
|
@ -103,4 +103,4 @@ object Misc {
|
|||
class Trippy[+T1, T2, +T3]
|
||||
def g1 = Set[Trippy[AnyRef, AnyRef, AnyRef]]() + new Trippy[String, String, String]
|
||||
def g2 = Set[Map[String, String]]() + Map[AnyRef, String]()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ class Test {
|
|||
def foo {
|
||||
private def bar {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
weakTypeTagIsnotClassManifest[Int]
|
||||
weakTypeTagIsnotClassManifest[String]
|
||||
weakTypeTagIsnotClassManifest[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
weakTypeTagIsnotClassTag[Int]
|
||||
weakTypeTagIsnotClassTag[String]
|
||||
weakTypeTagIsnotClassTag[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ object Test extends App {
|
|||
weakTypeTagIsnotManifest[Int]
|
||||
weakTypeTagIsnotManifest[String]
|
||||
weakTypeTagIsnotManifest[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
classManifestIsnotTypeTag[Int]
|
||||
classManifestIsnotTypeTag[String]
|
||||
classManifestIsnotTypeTag[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ object Test extends App {
|
|||
classTagIsnotManifest[Int]
|
||||
classTagIsnotManifest[String]
|
||||
classTagIsnotManifest[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
typeTagIsnotClassManifest[Int]
|
||||
typeTagIsnotClassManifest[String]
|
||||
typeTagIsnotClassManifest[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
typeTagIsnotClassTag[Int]
|
||||
typeTagIsnotClassTag[String]
|
||||
typeTagIsnotClassTag[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
typeTagWithoutClassTagIsnotManifest[Int]
|
||||
typeTagWithoutClassTagIsnotManifest[String]
|
||||
typeTagWithoutClassTagIsnotManifest[Array[Int]]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,4 @@ object Test {
|
|||
val m = new Ann_0 { val annotationType = classOf[Ann_0] } // ok
|
||||
val n = new Ann_1 { val annotationType = classOf[Ann_1] } // ok
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
object Test extends App {
|
||||
Macros.abort
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,4 @@ class Macros {
|
|||
object Test extends App {
|
||||
import Macros.Shmacros._
|
||||
println(foo(2) + Macros.bar(2) * new Macros().quux(4))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,4 +22,4 @@ object Macros {
|
|||
c.abort(c.enclosingPosition, "I don't like classes that contain integers")
|
||||
q"new Foo[$tpe]{ override def toString = ${tpe.toString} }"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
object Test extends App {
|
||||
println(implicitly[Foo[C1]])
|
||||
println(implicitly[Foo[C2]])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ object Test extends App {
|
|||
typed[(Int, String, Boolean)](equiv)
|
||||
println(equiv)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ object Macros {
|
|||
}
|
||||
|
||||
def foo: Any = macro impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@ import Macros._
|
|||
|
||||
object Test extends App {
|
||||
println(Macros.foo.x)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ abstract class Bundle(c: Context) {
|
|||
|
||||
object Macros {
|
||||
def foo = macro Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ object Macros {
|
|||
|
||||
object Test extends App {
|
||||
def foo: Unit = macro Macros.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ class Macros(val c: Context) {
|
|||
|
||||
object Macros {
|
||||
def foo: Any = macro impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,4 +6,4 @@ class Bundle {
|
|||
|
||||
object Macros {
|
||||
def foo = Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ class Macros(c: Context) {
|
|||
|
||||
object Macros {
|
||||
def foo: Any = macro Macros.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ class Macros(val c: Context) {
|
|||
|
||||
object Macros {
|
||||
def foo: Any = macro Macros.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ class Bundle(val c: BlackboxContext) {
|
|||
|
||||
object Macros {
|
||||
def foo = macro Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ object Macros {
|
|||
def white1: Any = macro WhiteboxBundle1.impl
|
||||
def white2: Any = macro WhiteboxBundle2.impl
|
||||
def white3: Any = macro WhiteboxBundle3.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ object Macros {
|
|||
|
||||
object Test extends App {
|
||||
def foo: Unit = macro Macros.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ object Macros {
|
|||
|
||||
object Test extends App {
|
||||
def foo: Unit = macro Macros.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ trait Bundle {
|
|||
|
||||
object Macros {
|
||||
def foo = macro Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,4 +10,4 @@ class Bundle(val c: MyContext) {
|
|||
|
||||
object Macros {
|
||||
def foo: Any = macro Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ class Bundle(val c: Context { type Foo <: Int }) {
|
|||
|
||||
object Macros {
|
||||
def foo: Any = macro Bundle.impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
object Test extends App {
|
||||
println(implicitly[Complex[Foo]])
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
object Test extends App {
|
||||
Macros.exception
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ import scala.reflect.macros.blackbox.Context
|
|||
object Macros {
|
||||
def impl(c: Context) = c.universe.Literal(c.universe.Constant(()))
|
||||
def foo: Unit = macro impl
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ class Plugin(val global: Global) extends NscPlugin {
|
|||
Some(result)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
object Test extends App {
|
||||
Macros.foo
|
||||
Macros.foo
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ import scala.reflect.macros.blackbox.Context
|
|||
object Macros {
|
||||
def impl(c: Context) = c.universe.Literal(c.universe.Constant(()))
|
||||
def foo: Unit = macro impl
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue