Comments (3)
This works for me:
# typed: true
extend T::Sig
sig {params(x: Enumerator[T.untyped]).void}
def foo(x)
end
from sorbet.
@elliottt this code will fail in runtime.
from sorbet.
This was fixed in #915
from sorbet.
Related Issues (20)
- Idiomatic typing of flasey-able memoization HOT 1
- Type mismatch for `highlightUntyped` VS Code extension setting prevents Sorbet client from starting HOT 3
- Potential improvements to make `Integer#+` overload resolution better HOT 1
- Sorbet error suggests using the type that is being used
- Method arguments in anonymous class with super class are not respected HOT 2
- Add CHANGELOG.md file
- Sorbet should autocompete `case` statements on `T::Enum` and `T.any` objects HOT 1
- `require_relative` causes Duplicate type member Elem 4011 errors HOT 4
- Prompt for desired module when moving singleton methods HOT 1
- Sorbet mistakenly treats `Object` as `T.anything` in block return
- Type member cannot be used as type argument to other type member
- Fails to type check upper type bounds that should type check on nested generics HOT 2
- Make "Rename Symbol" work on prop definitions HOT 1
- Support "Rename Symbol" on `attr_accessor` method definitions
- Make "Rename Symbol" work on calls to prop getter method
- Fails to type check (covariant) upper type bounds that should type check on nested generics (Pt. II) HOT 2
- Go to Definition on variable initialized with constant lit jumps to wrong place
- `T.anything` is not a class type and does not have singleton class methods
- Adjust "Did you mean to include Kernel in this module?" message for `--enable-experimental-requires-ancestor`?
- T.self_type not working as a block parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sorbet.