Ticket #318 (closed defect: fixed)
Internal Error (FallThrough Exception)
Reported by: | torial | Owned by: | Chuck |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.3 |
Keywords: | Cc: |
Description
I received the following internal error:
error: COBRA INTERNAL ERROR / FallThroughException? / info='_type is nil. this=BoxVar?-sh(6613, name=bufferSize, didBindInh=false, didBindInt=false, didBindImp=false, token=Token(ID, 'bufferSize', 'bufferSize', ln 301, col 7, C:\Users\seanm\Desktop\Cobra\NajaNode?.cobra), name=bufferSize, isNames=['shared', 'readonly'], parentBox=Class-mi(6611, name=Config, didStartBindInh=true, didBindInh=true, didBindInt=false, didBindImp=false, token=Token(CLASS, 'class', 'class', ln 300, col 2, C:\Users\seanm\Desktop\Cobra\NajaNode?.cobra), didBindInh=true, isGeneric=false, isGenericDef=false, needsConstruction=false, 6611), typeNode=TypeIdentifier?-mi(6612, didBindInh=false, didBindInt=false, didBindImp=false, token=Token(INT, 'int', 'int', ln 301, col 21, C:\Users\seanm\Desktop\Cobra\NajaNode?.cobra), name=int, didResolveType=true, 6612), 6613)'
Compilation failed - 1 error, 0 warnings
Exit code: 1
This is w/ the latest code in SVN (as of 3/14/2013).
The error seems to be around this class:
class Config var bufferSize as int is shared, readonly var traceLogging as bool is shared, readonly cue init is shared .bufferSize = 1024 .traceLogging = false
This is a first pass attempt at porting as C# port of Node.js (from a few years back). The original C#: http://newcome.wordpress.com/2010/05/08/node-net-node-js-implemented-in-javascript-on-the-net-runtime/ . Right now, I'm just trying to get it to compile...