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

new not defined error #6414

Closed
rwgardner opened this issue Apr 4, 2014 · 4 comments
Closed

new not defined error #6414

rwgardner opened this issue Apr 4, 2014 · 4 comments

Comments

@rwgardner
Copy link

I just updated to Version 0.3.0-prerelease+2486 (2014-04-04 06:05 UTC) Commit 7211853.

This sounds like issue #3487.

I get an "ERROR: new not defined" with respect to a constructor definition for a composite data type, where I did not previously get such an error.

Unfortunately, I can't post the code and haven't been able to create a simple, reproducible example. I will keep looking.

I tried make cleanall as suggested in the other issue. It did not solve the problem.

@timholy
Copy link
Member

timholy commented Apr 4, 2014

Almost surely a dupe of #5153. If you do come up with a reproducible test case, please file it there.

@timholy timholy closed this as completed Apr 4, 2014
@oyd11
Copy link

oyd11 commented Jun 30, 2015

If that's the same case, I just came up with this example:

type Lala
  p::Float64
  Lala = new()
end ## >> ERROR: new not defined

@yuyichao
Copy link
Contributor

Don't you need to write Lala() = new() ?

@oyd11
Copy link

oyd11 commented Jun 30, 2015

right, for a proper type definition, thought this might be related to this error popping up

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

4 participants