Comments (2)
As a workaround you can use reflection to implement the array method:
@Self Foo[] getArray()
{
Object array = Array.newInstance( getClass(), 1 );
Array.set( array, 0, this );
return (Foo[])array;
}
from manifold.
Proposal:
Support new @Self Foo[]...
only for arrays
- Manifold will replace new expressions with
Array.newInstance(getClass(), size)...
from manifold.
Related Issues (20)
- @var error HOT 5
- IDE plugin does not recognise symbols provided by a custom SymbolProvider HOT 2
- Question: Fashion and reliability HOT 1
- Incorrect IntelliJ warning: Method invocation may produce 'NullPointerException' HOT 1
- IntelliJ Plugin: "slow operations" errors occurring in IntelliJ IDEA, primarily in 2023.3 EA HOT 1
- IDEA Chinese Language Pack causes @var error HOT 3
- tuple error on restart idea HOT 3
- `ProcessCanceledException` thrown by Manifold IDEA plugin HOT 2
- The String Template plugin will false alert on SpEL expressions with default values. HOT 2
- IntelliJ plugin: Editor shows errors re changes not used, but is referenced in string template HOT 1
- IDEA 2023.3 error HOT 7
- Suppress "Non-final field" warning when using @val HOT 5
- manifold-graphql: larger graphql models will not compile due to graphql-java default 15000 token limit HOT 1
- [Request] Arithmetic (Shift, Or, Etc) Operators HOT 6
- IntelliJ Plugin: UI freeze when entering certain tags in HTML file HOT 1
- Optimization of string templates for IDEA plugins. HOT 2
- manifold-json: Support top-level oneOf/anyOf types HOT 1
- Fix authorization headers for JSON and GraphQL HOT 1
- manifold.ij.core.ManProject hold disposed instances of ProjectImpl HOT 2
- cpu 100% when use manifold sql fetch() HOT 1
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 manifold.