Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AustinMorris
Copy link
Contributor

With coords having type int[], passing an argument of type double[] fails to compile from the type mismatch, but it also fails to compile when passed an int[], since it can't implicitly convert the int[] to a double[] when assigning to the _coords member.
For example, using either the second or third lines below was causing an error.

auto line = new CanvasLine([0.0, 0.0, 9.0, 9.0]);
line.setCoords([0.0, 0.0, 9.0, 9.0]);
line.setCoords([0, 0, 9, 9]);

nomad-software pushed a commit that referenced this pull request Jan 9, 2016
@nomad-software nomad-software merged commit 689a98a into nomad-software:master Jan 9, 2016
@nomad-software
Copy link
Owner

Good spot, thanks!

@nomad-software
Copy link
Owner

I've created a new release containing this fix too.

https://github.com/nomad-software/tkd/releases/tag/v1.1.6
http://code.dlang.org/packages/tkd

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

Successfully merging this pull request may close these issues.

2 participants