diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-01-04 12:28:25 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-01-04 13:10:52 +0200 |
commit | 789ba107cf3bcc1a87d896fc7cbfa11e151898c2 (patch) | |
tree | a912096f7e5133f3dd08528d1499d6cd1ecec305 /compiler/jsgen.nim | |
parent | 02533c260b16ce7b16a47781d104b46b36544749 (diff) | |
download | Nim-789ba107cf3bcc1a87d896fc7cbfa11e151898c2.tar.gz |
introduce tyFromExpr; fixes #618
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r-- | compiler/jsgen.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index ddfc189dd..b4e696d0a 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -129,8 +129,9 @@ proc mapType(typ: PType): TJSTypeKind = tyVarargs: result = etyObject of tyNil: result = etyNull - of tyGenericInst, tyGenericParam, tyGenericBody, tyGenericInvokation, tyNone, - tyForward, tyEmpty, tyExpr, tyStmt, tyStatic, tyTypeDesc, tyTypeClasses: + of tyGenericInst, tyGenericParam, tyGenericBody, tyGenericInvokation, + tyNone, tyFromExpr, tyForward, tyEmpty, + tyExpr, tyStmt, tyStatic, tyTypeDesc, tyTypeClasses: result = etyNone of tyProc: result = etyProc of tyCString: result = etyString |