Comments (3)
What a strange error, I've checked against an older commit and the same error appears, at least it's not from #1476...
from stainless.
The intention of having user-defined change blocks using inline seems doomed, but it helped uncover this.
Trying to make things ghost
also confused me. It seems that marking an entire class ghost
does not make its mutable fields ghost, but only methods defined in it (if any)? Do we have examples of people putting ghost
on a class?
from stainless.
changeMyClass
is annotated with @ghost
here because it is "an erased value or an erased inline method or field" according to the doc of isEffectivelyErased
.
This check has been added here when we could use erased
as a replacement for @ghost
. Note that this check to isEffectivelyErased
has no equivalent in the Scala 2 frontend.
I think it is safe to allow inline
method, since this check was surely meant to only include erased
.
from stainless.
Related Issues (20)
- Incorrect "refinements checks for subtyping" generated in some cases
- Deep structure updates in non-aliased imperative (was: `computes` to use condition as a more efficient implementation) HOT 4
- Crash in Inox type checker when using freshCopy HOT 1
- Failure of postcondition shown as failure of the assertion in the branch
- Inconsistent positions for postcondition HOT 1
- Equalities to be rejected: Double, functions, allocatable non-case classes, type vars HOT 4
- `AntiAliasing` not updating targets for `val` fields HOT 2
- Why is `ConcTree.Empty` not a `case object`? HOT 1
- Unsoundness when using `swap` due to AntiAliasing not flagging HOT 9
- "publicly opaque" concept would be useful when working with laws HOT 1
- `AntiAliasing` does not update local aliasing information after replacement
- Incorrect transformation of inner functions mutating a local variable
- MethodLifting reporting when subclasses have preconditions
- Convert throw into assert(false) HOT 7
- Error reporting from alias analysis
- PrimitiveSize functions should not be generated when termination checking is off?
- Map `erased` to `@ghost`
- Well-formedness check failure when operating on an `Array` type alias
- Incorrect usage of `old` when it is not
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stainless.