fixes #395
This commit is contained in:
parent
fcb4344ac5
commit
4e6b81e341
2 changed files with 9 additions and 7 deletions
|
|
@ -1,12 +1,14 @@
|
|||
discard """
|
||||
file: "tbug499771.nim"
|
||||
output: "TSubRange: 5 from 1 to 10"
|
||||
output: '''TSubRange: 5 from 1 to 10
|
||||
true true true'''
|
||||
"""
|
||||
type TSubRange = range[1 .. 10]
|
||||
type
|
||||
TSubRange = range[1 .. 10]
|
||||
TEnum = enum A, B, C
|
||||
var sr: TSubRange = 5
|
||||
echo("TSubRange: " & $sr & " from " & $low(TSubRange) & " to " &
|
||||
$high(TSubRange))
|
||||
|
||||
|
||||
|
||||
|
||||
const cset = {A} + {B}
|
||||
echo A in cset, " ", B in cset, " ", C notin cset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue