Giter VIP home page Giter VIP logo

Comments (2)

VladUreche avatar VladUreche commented on June 4, 2024

Not hard to reproduce:

package miniboxing.tests.compile
import miniboxing.plugin.minispec

class Vector[@minispec E](size: Int) {
  def this() = this(10)
  def this(s: String) = this(s.length)
}

from miniboxing-plugin.

VladUreche avatar VladUreche commented on June 4, 2024

Bleah, phase ordering problem:

{
  Vector#7207.this.<init>#8982(10);
  ()
}
        typing {
          Vector#7207.this.<init>#8982(10);
          ()
        }: pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=EXPRmode, silent=false, context.owner=constructor Vector_J#18160
            typing E: pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=TYPEmode, silent=false, context.owner=constructor Vector_J#18160
warning: issue error: not found: type E
            caught scala.reflect.internal.Types$TypeError: not found: type E: while typing E
            typing Vector#7207.this.<init>#8982(10): pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=EXPRmode BYVALmode, silent=false, context.owner=constructor Vector_J#18160
                typing E: pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=TYPEmode, silent=true, context.owner=constructor Vector_J#18160
warning: issue error: not found: type E
                typed <E: error>: <error>
                adapted <E: error>: <error> to ?, 
Vector_J#18153.this.<init>
                typing Vector_J#18153.this.<init>: pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=EXPRmode BYVALmode POLYmode FUNmode, silent=true, context.owner=constructor Vector_J#18160
                    typing Vector_J#18153.this: pt = ?: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=EXPRmode POLYmode QUALmode, silent=true, context.owner=constructor Vector_J#18160
                    typed Vector_J#18153.this: Vector_J#18153.this.type with underlying compile#7200.this.Vector_J#18153[Esp#18154]
                    adapted Vector_J#18153.this: compile#7200.this.Vector_J#18153[Esp#18154] to ?, 
                typed Vector_J#18153.this.<init>#20975: (val miniboxing$tests$compile$Vector_J|E_TypeTag#18161: scala#21.this.Byte#1231)compile#7200.this.Vector_J#18153[Esp#18154] <and> (val miniboxing$tests$compile$Vector_J|E_TypeTag#18159: scala#21.this.Byte#1231, <param> size#18158: scala#21.this.Int#310)compile#7200.this.Vector_J#18153[Esp#18154]
                adapted Vector_J#18153.this.<init>#20975: (val miniboxing$tests$compile$Vector_J|E_TypeTag#18161: scala#21.this.Byte#1231)compile#7200.this.Vector_J#18153[Esp#18154] <and> (val miniboxing$tests$compile$Vector_J|E_TypeTag#18159: scala#21.this.Byte#1231, <param> size#18158: scala#21.this.Int#310)compile#7200.this.Vector_J#18153[Esp#18154] to ?, 
res: Vector_J#18153.this.<init>#20975
    typing 10: pt = scala#21.this.Byte#1231: undetparams=, implicitsEnabled=false, enrichmentEnabled=false, mode=EXPRmode BYVALmode, silent=false, context.owner=constructor Vector_J#18160
    typed 10: scala#21.this.Int#310(10)
    adapted 10: scala#21.this.Byte#1231 to scala#21.this.Byte#1231, 
            typed Vector_J#18153.this.<init>#18160(10): compile#7200.this.Vector_J#18153[Esp#18154]
            adapted Vector_J#18153.this.<init>#18160(10): compile#7200.this.Vector_J#18153[Esp#18154] to ?, 
warning: issue error: called constructor's definition must precede calling constructor's definition
        caught scala.reflect.internal.Types$TypeError: called constructor's definition must precede calling constructor's definition: while typing {
          Vector#7207.this.<init>#8982(10);
          ()
        }
    caught scala.reflect.internal.Types$TypeError: called constructor's definition must precede calling constructor's definition: while typing <method> def <init>#18160(miniboxing$tests$compile$Vector_J|E_TypeTag#18161: scala#21.this.Byte#1231): compile#7200.this.Vector_J#18153[Esp#18154] = {
      Vector#7207.this.<init>#8982(10);
      ()
    }

from miniboxing-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.