JuliaLang/julia

Do something else when method name is a TypeVar

Open

#33,537 opened on Oct 11, 2019

View on GitHub
 (7 comments) (3 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
buggood first issue

Description

I encountered the following behavior, which is just odd:

julia> T(a, b, c) where T = 1
T (generic function with 0 methods)

Apparently what happened was:

  1. It created a method T
  2. It added the defined method to something else (TypeVar, Any - one of them anyway)
  3. It returned the method T

According to @JeffBezanson this should do "something else, whatever it may be", so here's the issue for that.

Contributor guide

Do something else when method name is a TypeVar · JuliaLang/julia#33537 | Good First Issue