-
## Bug Report
Repo to reproduce bug: https://github.com/tkshnwesper/potential_crystal_bug
Run `crystal spec`
### Context
* There are 3 modules, `A`, `A::B` and `A::C`.
* `b.cr` - `A::B` has…
-
Hi,
With this code
```Crystal
require "log"
a = 2
if a % 2 == 0
a = 0_u8
end
pp typeof(a) # => (Int32 | UInt8)
Log.info &.emit("test", a: a)
```
I got the following error:
```
…
-
``` crystal
class Indexable::ItemIterator
def limit(from : Int , count : Int, &block)
skip(from).first(count).each { |v| yield v }
end
def limit(range : Range, &block)
take = range.…
-
`flock` methods on `FileDescriptor` have two modes of operation: blocking and non-blocking. In the first case, the method blocks until it gets the lock (see #12721 for a proposal to make that fiber-aw…
-
Note: I've successfully got bindgen to work under macos. I had to modify the scripts a bit, but I was able to compile clang and everything. I just couldn't get `-ltinfo`, I just removed it for now.
…
-
The following code is valid in Crystal but not in Ruby:
```crystal
def foo(x?, y!)
x? + y!
end
foo 1, 2
{"foo" => "bar"}.each do |key?, value!|
puts key? + value!
end
```
I would…
-
The empty `else` block will hang all fibers and will not give a compile error.
```crystal
select
when x = chan.receive
puts x
else
end
```
An empty `when` block work…
-
As we approach a new major version there will be more and more breaking changes introduced via compile-time flags, and it becomes infeasible to test every combination of those flags. Our CI currently …
-
is this ok?
```crystal
abstract class A
abstract def bla : Int32
end
class Bla
def bla : Int32
1
end
end
class B < A
def initialize
@bla = Bla.new
end
delegat…
-
Hey everybody. Impressive work.
Please take this for what it is: a little bit of feedback from a total beginner.
I went through most of the documentation and skimmed a little bit over some API d…