-
I tried to do:
```crystal
alias Output = String |
Hash(Symbol, Output) |
Hash(Symbol, Hash(Symbol, Output))
```
Because I wanted to do `@output = { …
-
## Bug Report
Consider the following code:
```cr
def wat
foo { huh }
end
def foo
yield
end
def bar
raise "the bar"
end
def huh
bar
end
wat
```
This outputs:
``…
-
```cr
b = a : Bool
pp a # Error: read before assignment to local variable 'a'
pp b # => nil
```
This sounds like a bug, the first line should give the `read before assignement` error.
-
0.17.0
```
ysh$ if forkwait { pwd }; { write ok }
if forkwait { pwd }; { write ok }
^~~~~~~
[ interactive ]:1: 'forkwait' expected a block
```
```
ysh$ forkwait { pwd }
/tmp
```
…
bar-g updated
7 months ago
-
The spec module works by passing an `Expectation` to `#should` or `#should_not` as the main way of writing assertions. However there is not an actual interface representing what an `Expectation` actua…
-
I've found that a clean install of Fedora 30 is pretty lacking when it comes to building the project. I'm using this issue to document all of the packages I need to install as I work towards a build. …
-
The following made me think I was using %w wrong!
```crystal
class Foo
PROPS = %w(one two three)
{% for prop in PROPS %}
puts "oops. Forgot to call id on {{prop}}"
{% end %}
end
``…
-
#### Example Code:
```
alias ItemTuple = {Int64, Int32, String, Int16, Int8, Int8, Int8, Int16, Int16, Float64, Float64, Int8, Int16}
db.query_all "select #{ItemQuery} from rpg_user_items where rpg…
girng updated
5 years ago
-
This is a more complete proposal of https://github.com/crystal-lang/crystal/issues/6997#issuecomment-450363123. It should be possible to define an upper bound for each free variable used in a def:
…
-
I ran into a weird issue, where macros are not being properly expanded within the description text of `describe` or `it` blocks.
### Example
```crystal
require "./spec_helper"
Spectator.desc…