Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scalac does not inline type aliases enough before type inference: [error] /Users/pgiarrusso/Documents/Research/Sorgenti/ilc-scala-sbt/src/main/scala/ilc/feature/let/ANormalForm.scala:383: type mismatch; [error] found : PartialFunction[AddCaches2.this.mySyntax.Term,AddCaches2.this.mySyntax.Term] [error] required: AddCaches2.this.mySyntax.=?>:[T,AddCaches2.this.mySyntax.Term] [error] (which expands to) PartialFunction[T,AddCaches2.this.mySyntax.Term] [error] or(descendAbsRule orElse descendLetRule(intermediateResults))(descendAtom(intermediateResults)) [error] ^ As mentioned in src/main/scala/ilc/feature/let/Traversals.scala, you can work this around by inlining the type alias: this will make everything compile. Warning: If after that you undo the change, everything will still compile (under SBT, and sometimes in Eclipse) because SBT's compilation manager, when computing the interface of a file, *does* inline type aliases correctly.
- Loading branch information
1 parent
bf18349
commit bea1580
Showing
5 changed files
with
271 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.