Skip to content

Add value class run tests #601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/dotty/tools/dotc/transform/ExtensionMethods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful
decls1.enter(evt2uSym)
}

// add a VCXXXCompanion superclass

// Add the extension methods, the cast methods u2evt$ and evt2u$, and a VC*Companion superclass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd better leave this comment as is, it explains what should be happening in next lines.

moduleClassSym.copySymDenotation(info =
cinfo.derivedClassInfo(
classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
// FIXME: use of VC*Companion superclasses is disabled until the conflicts with SyntheticMethods are solved.
//classParents = ctx.normalizeToClassRefs(List(newSuperClass), moduleSym, decls1),
decls = decls1))
case _ =>
moduleClassSym
Expand Down
4 changes: 0 additions & 4 deletions tests/pending/run/t6260-delambdafy.check

This file was deleted.

1 change: 0 additions & 1 deletion tests/pending/run/t6260-delambdafy.flags

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/run/t6260-delambdafy.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
f(C@2e)

apply
get$Lambda
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
final class Opt[+A >: Null](val value: A) extends AnyVal {
def get: A = value
def isEmpty = value == null
def isDefined = !isEmpty
}
object Opt {
final val None = new Opt[Null](null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ object NonNullChar {
@inline final val None = new NonNullChar(0.toChar)
}

final class SomeProduct extends Product3[String, Int, List[String]] {
final class SomeProduct /*extends Product3[String, Int, List[String]]*/ {
def canEqual(x: Any) = x.isInstanceOf[SomeProduct]
def _1 = "abc"
def _2 = 5
def _3 = List("bippy")
def isEmpty = false
def isDefined = !isEmpty
def get = this
}
object SomeProduct {
Expand Down