From 7132b04f44a9d801773d3f2423e41c5ecfa7c978 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 3 Sep 2017 01:15:40 +0200 Subject: equality check on NimSym has now support in the VM; refs #6139 --- lib/core/macros.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/core') diff --git a/lib/core/macros.nim b/lib/core/macros.nim index a7d31ad62..3cfefb5c1 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -150,6 +150,9 @@ proc `==`*(a, b: NimIdent): bool {.magic: "EqIdent", noSideEffect.} proc `==`*(a, b: NimNode): bool {.magic: "EqNimrodNode", noSideEffect.} ## compares two Nim nodes +proc `==`*(a, b: NimSym): bool {.magic: "EqNimrodNode", noSideEffect.} + ## compares two Nim symbols + proc sameType*(a, b: NimNode): bool {.magic: "SameNodeType", noSideEffect.} = ## compares two Nim nodes' types. Return true if the types are the same, ## eg. true when comparing alias with original type. -- cgit 1.4.1-2-gfad0 optgroup> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/tests/coroutines/texceptions.nim
blob: e67f954c35475d8162f79112359f82d9a866a21d (plain) (blame)
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