From 1defc11510a4816d9ebf8efa6b796aa77802c0d7 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Thu, 8 Apr 2021 15:59:27 -0400 Subject: [PATCH] remove method definition for `Int` in test/core.jl (#40380) --- test/core.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/core.jl b/test/core.jl index 04c261e861ab2..d617f14c7eb01 100644 --- a/test/core.jl +++ b/test/core.jl @@ -2389,19 +2389,14 @@ let ex = Expr(:(=), :(f8338(x;y=4)), :(x*y)) end # call overloading (#2403) -(x::Int)(y::Int) = x + 3y issue2403func(f) = f(7) -let x = 10 - @test x(3) == 19 - @test x((3,)...) == 19 - @test issue2403func(x) == 31 -end mutable struct Issue2403 x end (i::Issue2403)(y) = i.x + 2y let x = Issue2403(20) @test x(3) == 26 + @test x((3,)...) == 26 @test issue2403func(x) == 34 end