Skip to content

Various internal types available in user code #8673

Open
@bishabosha

Description

@bishabosha

Minimized code

lazy val x: scala.|[Int, String] = ???
lazy val y: scala.&[Int, String] = ???
lazy val z: implicits = ???
lazy val a: compiletime = ???
def foo(seq: `<repeated>`[Int]) = ???
def bar(x: `<byname>`[Int]) = ???
def baz = `<special-ops>`.`throw`(new AssertionError("?"))

Output

Warning: mocking up superclass for module class compiletime
Warning: mocking up superclass for module class implicits

Expectation

nsc does not recognise <repeated> or <byname> as types, even though it does the same thing with mock class types

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogNo work planned on this by the core team for the time being.stat:needs spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions