Skip to content

Typer calls NoDenotation.owner if bad structural type #62

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

Closed
samuelgruetter opened this issue Mar 12, 2014 · 1 comment
Closed

Typer calls NoDenotation.owner if bad structural type #62

samuelgruetter opened this issue Mar 12, 2014 · 1 comment
Labels

Comments

@samuelgruetter
Copy link
Contributor

[Low priority]

In this example,

object test {
  type X = { val m: BadType }
}

the BadType is correctly rejected, but then typechecking continues and throws an uncaught exception:

[error] tests/neg/NoDenotationOwner.scala:2: error: not found: type BadType
[error]   type X = { val m: BadType }
[error]                     ^
[info] exception occured while typechecking tests/neg/NoDenotationOwner.scala
[error] Exception in thread "main" java.lang.AssertionError: NoDenotation.owner
[error]     at dotty.tools.dotc.core.SymDenotations$NoDenotation$.owner(SymDenotations.scala:1228)
[error]     at dotty.tools.dotc.typer.Typer$$anonfun$typedRefinedTypeTree$1$$anonfun$dotty$tools$dotc$typer$Typer$$anonfun$$addRefinement$1$2.apply(Typer.scala:671)
[error]     at dotty.tools.dotc.typer.Typer$$anonfun$typedRefinedTypeTree$1$$anonfun$dotty$tools$dotc$typer$Typer$$anonfun$$addRefinement$1$2.apply(Typer.scala:669)
[error]     at dotty.tools.dotc.ast.Trees$Instance$$anon$1.traverse(Trees.scala:889)
...
@smarter
Copy link
Member

smarter commented Nov 18, 2015

Does not happen anymore.

@smarter smarter closed this as completed Nov 18, 2015
OlivierBlanvillain pushed a commit to OlivierBlanvillain/dotty that referenced this issue Dec 8, 2016
Added 'final' attribute to ServialVersionUID fields (ticket scala#62).
OlivierBlanvillain pushed a commit to OlivierBlanvillain/dotty that referenced this issue Dec 12, 2016
Added 'final' attribute to ServialVersionUID fields (ticket scala#62).
WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this issue Mar 19, 2025
Backport "Extract semanticDB for lifted definitions" to 3.3 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants