Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 15 - Anonymous objects whose values are of type T do not fit Dynamic<T> - haxe #15

Closed
issuesbot opened this issue May 28, 2013 · 1 comment

Comments

@issuesbot
Copy link

[Google Issue #15 : https://code.google.com/p/haxe/issues/detail?id=15]
by john%n-b...@gtempaccount.com, at 24/11/2009, 17:03:08
What steps will reproduce the problem?

class Main {
    function foo(d:Dynamic<String>) {
    }
    function bar() {
        foo({a: "string"});
    }
}

What is the expected output? What do you see instead?

The program is expected to compile. However, it does not compile because an anonymous object
all of whose values are strings does not fit Dynamic<String> (even though it should).

What version of the product are you using? On what operating system?

Problem happens on all OS.

Please provide any additional information below.

@issuesbot
Copy link
Author

[comment from ncanna...@gmail.com, published at 19/12/2009, 19:35:30]
New language feature added on CVS.

frabbit pushed a commit to frabbit/haxe-1 that referenced this issue Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant