Results 18 issues of Chao Yang

Fix copy by deeply copying src object.

Fixes #16484 Gemini AI analysis of root cause and fix: ### Root Cause The interpreter's compile_call_arg method in compiler.cr was unconditionally calling downcast when casting an argument type to the...

Found this interpreter bug with crystal-db shard. Reduced code to reproduce: ```crystal require "log" module MetadataValueConverter def self.arg_to_log(arg) : ::Log::Metadata::Value ::Log::Metadata::Value.new(arg.to_s) end def self.arg_to_log(arg : Enumerable) : ::Log::Metadata::Value ::Log::Metadata::Value.new(arg.to_a.map {...

kind:bug
topic:compiler:interpreter

Try to fix #16486 Reverting back to the original fix. ## Summary I've successfully fixed the Crystal interpreter bug where type narrowing failed when: Inside an if block with a...

This error only happens with interpreter, the compiled binary works fine. Code to reproduce the error(reduced by AI): ```crystal # Minimal reproducer for Crystal interpreter bug # Issue: Type narrowing...

kind:bug
topic:compiler:interpreter

Fixes #14967 Generated by Gemini AI: ## Root Cause The interpreter implementation of crystal_type_id was incorrectly using the compile-time type of the variable to determine the Type ID. In the...

fixes #16278 @ysbaddaden @straight-shoota This fix was generated by google gemini AI via Gemini Code Assist plugin in vscode. I created this PR to see if the fix would cause...

kind:bug
topic:compiler:interpreter

# Bug Report code to reproduce: ```crystal abstract class A abstract def foo : Int32 def bar foo end end class B < A @test = 0 def foo :...

kind:bug
topic:compiler:interpreter