/tests/sets/

r'> index : Nim
This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/lib/impure/osinfo_win.nim
blob: 0362fca12da8199a966781cc05afd60bc82760dc (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                       
lt'>














                                                                                 
# bug #4177

type
  Parent = object of RootObj
    parentField: int
  Child = object of Parent
    childField: int

{.this: self.}
proc sumFields(self: Child): int =
  result = parentField + childField # Error: undeclared identifier: 'parentField'

proc sumFieldsWorks(self: Child): int =
  result = self.parentField + childField