summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-01-04 12:28:25 +0200
committerZahary Karadjov <zahary@gmail.com>2014-01-04 13:10:52 +0200
commit789ba107cf3bcc1a87d896fc7cbfa11e151898c2 (patch)
treea912096f7e5133f3dd08528d1499d6cd1ecec305 /compiler/jsgen.nim
parent02533c260b16ce7b16a47781d104b46b36544749 (diff)
downloadNim-789ba107cf3bcc1a87d896fc7cbfa11e151898c2.tar.gz
introduce tyFromExpr; fixes #618
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim5
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