Comments (1)
Use 'nil' for the empty branch. It's a known parser bug that empty branches parse.
from nim.
Related Issues (20)
- `nim c -c` on `{.push emit.}`: `Error: unhandled exception: field 'sons' is not accessible for type 'TNode' using 'kind = nkIdent' [FieldDefect]`
- Spurious effects regression from Nim 2.0.4 to 2.0.5 HOT 1
- `Error: fatal error: invalid kind for lastOrd(tyGenericParam)` in compiler given invalid array declaration HOT 2
- compilation error/regression from 2.0.4 to 2.0.5: `Error: unhandled exception: field 'sym' is not accessible for type 'TNode' using 'kind = nkIntLit' [FieldDefect]` HOT 1
- `if nil == X` crashes the compiler HOT 1
- Stack trace with wrong line number when the proc called inside for loop
- Moves disallowed in top-level block
- IEEE NaN makes std/algorithm.nextPermutation infinite loop HOT 1
- C compiler error when default initializing an object field function when the default function is overloaded HOT 5
- Semi-regression (?): generic typeclass not matching HOT 3
- Docs rendering on smaller devices HOT 2
- Invalid codegen when trying to mannualy delete distinct seq HOT 3
- In NimScript mode, make `commandLineParams()` more useful
- Allow `array[..., void]` HOT 3
- `typeinfo.extendSeq` generates random values
- `hasCustomPragma` stops working after typedesc is copied
- Invalid "When used with a type, 'not' can be followed only by 'nil'"
- captured NimNode becomes NilLit HOT 1
- regression from 1.6/2.0.4 to `version-2-0`/`devel` instantiating nested generic objects generic function HOT 3
- std/options is very picky on the types
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 nim.