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 (5,773 forks)batch import
buggood first issue

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

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