summary refs log tree commit diff stats
path: root/compiler/semdata.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-11-17 16:28:42 +0200
committerZahary Karadjov <zahary@gmail.com>2013-11-17 16:28:42 +0200
commit4cea15d2748de610715311497110136ba11c7ce9 (patch)
tree8da2f85508602d0b2e38b4c427d1718c86ca7314 /compiler/semdata.nim
parent31dd66acbf53b619c6b15a49fe80bffa4a44b3fd (diff)
downloadNim-4cea15d2748de610715311497110136ba11c7ce9.tar.gz
improvements for the `is` operator; implemented the type lifting rule in user-defined type classes
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r--compiler/semdata.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim
index 121bf297d..31d2ce6bd 100644
--- a/compiler/semdata.nim
+++ b/compiler/semdata.nim
@@ -60,6 +60,7 @@ type
     threadEntries*: TSymSeq    # list of thread entries to check
     AmbiguousSymbols*: TIntSet # ids of all ambiguous symbols (cannot
                                # store this info in the syms themselves!)
+    InTypeClass*: int          # > 0 if we are in a user-defined type class
     InGenericContext*: int     # > 0 if we are in a generic type
     InUnrolledContext*: int    # > 0 if we are unrolling a loop
     InCompilesContext*: int    # > 0 if we are in a ``compiles`` magic