summary refs log tree commit diff stats
path: root/tests/misc/tconv.nim
Commit message (Expand)AuthorAgeFilesLines
* Add test case for #3766 (#11252)Oscar Nihlgård2019-05-151-0/+14
* Make range checks in semConv (#7164)Oscar Nihlgård2019-05-101-0/+43
ef='/ahoang/Nim/commit/tests/template/tobjectdeclfield.nim?h=devel&id=3ac2d816010839a6b9a78bf0b2288f32eef7e231'>3ac2d8160 ^
3ac2d8160 ^

c19fd69b6 ^













3ac2d8160 ^
c19fd69b6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

                     
 

                     













                                                                      
 
        
block: # issue #16005
  var x = 0

  block:
    type Foo = object
      x: float # ok

  template main() =
    block:
      type Foo = object
        x: float # Error: cannot use symbol of kind 'var' as a 'field'

  main()

block: # issue #19552
  template test =
    type
      test2 = ref object
        reset: int

  test()