godot/modules/gdscript/tests/scripts/runtime/errors/typed_dictionary_assign_wrong_to_typed.gd

class Foo: pass
class Bar extends Foo: pass
class Baz extends Foo: pass

func test():
	var typed: Dictionary[Bar, Bar] = { Baz.new() as Foo: Baz.new() as Foo }
	print('not ok')