summary refs log tree commit diff stats
path: root/compiler/lowerings.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/lowerings.nim')
-rw-r--r--compiler/lowerings.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/lowerings.nim b/compiler/lowerings.nim
index f8ae67f41..0ed4c436f 100644
--- a/compiler/lowerings.nim
+++ b/compiler/lowerings.nim
@@ -19,7 +19,7 @@ when defined(nimPreviewSlimSystem):
   import std/assertions
 
 proc newDeref*(n: PNode): PNode {.inline.} =
-  result = newNodeIT(nkHiddenDeref, n.info, n.typ[0])
+  result = newNodeIT(nkHiddenDeref, n.info, n.typ.elementType)
   result.add n
 
 proc newTupleAccess*(g: ModuleGraph; tup: PNode, i: int): PNode =
@@ -262,7 +262,7 @@ proc indirectAccess*(a: PNode, b: ItemId, info: TLineInfo): PNode =
     assert t.kind == tyObject
     field = lookupInRecord(t.n, b)
     if field != nil: break
-    t = t[0]
+    t = t.baseClass
     if t == nil: break
     t = t.skipTypes(skipPtrs)
   #if field == nil:
@@ -286,7 +286,7 @@ proc indirectAccess*(a: PNode, b: string, info: TLineInfo; cache: IdentCache): P
     assert t.kind == tyObject
     field = getSymFromList(t.n, bb)
     if field != nil: break
-    t = t[0]
+    t = t.baseClass
     if t == nil: break
     t = t.skipTypes(skipPtrs)
   #if field == nil:
e> 2014-11-04 08:38:56 +0100 committer Araq <rumpf_a@web.de> 2014-11-04 08:38:56 +0100 documented nimfix' href='/ahoang/Nim/commit/install.txt?h=devel&id=1f63d1c76e733812e5e61d81e83429f853511fe7'>1f63d1c76 ^
db4f617af ^



1f63d1c76 ^
db4f617af ^
99bcc233c ^
1f63d1c76 ^
99bcc233c ^
4d4b3b1c0 ^
db4f617af ^




9387913b7 ^
627e192f6 ^
9387913b7 ^
db4f617af ^




1f63d1c76 ^
053309e60 ^
1f63d1c76 ^
a58a2f382 ^
db4f617af ^








ff4a69b62 ^

db4f617af ^
300430fbb ^
e27e873b7 ^



1f63d1c76 ^
e27e873b7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68