JuliaLang/julia

Do something else when method name is a TypeVar

Open

#33,537 建立於 2019年10月11日

在 GitHub 查看
 (7 留言) (3 反應) (0 負責人)Julia (48,709 star) (5,773 fork)batch import
buggood first issue

描述

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.

貢獻者指南

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