We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6568a14 commit 5985681Copy full SHA for 5985681
TypedSyntax/test/runtests.jl
@@ -2,7 +2,7 @@ using JuliaSyntax: JuliaSyntax, SyntaxNode, children, is_leaf, sourcetext, kind,
2
using TypedSyntax: TypedSyntax, TypedSyntaxNode
3
using Dates, InteractiveUtils, Test
4
using Core.Compiler: widenconst
5
-using Core: Const # avoid printing it as Const
+using Core: Const # print it as Const, not Core.Const
6
7
has_typ(node, @nospecialize(Ts::Tuple)) = any(has_typ(node, Ts[i]) for i in 1:length(Ts))
8
has_typ(node, @nospecialize(T)) = node.typ === T || !isnothing(node.typ) && widenconst(node.typ) === T
0 commit comments