-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Debug Failure. False expression: isDeclarationVisible unknown: SyntaxKind: 209 #2221
Comments
The .d.ts part is not yet applied. the changes are in #2139 |
Oh. Do you have a meta-ticket tracking the ES6 module features somewhere? I haven’t been able to find one to figure out the status. Applying that PR does seem to fix this issue so it would be great to see it land soon 👍 . |
We should be putting out a write up of the ES6 module work. it has been done rather incrementally, but we should have a roll up out in the next few days. |
See #2242. Sounds like this is just an artifact of the work in progress state so I'm going to close the issue. Please re-open if I've misunderstood or you're still seeing an issue with the latest bits. |
New twist on the same theme, now that #2139 is landed. Are you aware of this failure now when outputting declarations?:
I can do more debugging on my end if it’s not immediately apparent what this failure is. (I was hoping to have more info but it’s been an impossible day to get anything done.) (build 3e7e9f4) |
@mhegazy here is the minimal repro for the new case, which actually makes it a regression since this same code works fine in 1.4: class A {
foo() {
var aVal:A.B;
return aVal;
}
}
module A {
export interface B {}
}
export = A; The bug is not reproduced if the return value of |
What bits are you reproing this with? I just did a sync and build and that snippet compiles without error on the latest bits in master. |
Build 3e7e9f4. I can try with master also to verify it still happens. Make sure to use |
I can still reproduce on master (0d2a5bb). // A.ts
class A {
foo() {
var aVal:A.B;
return aVal;
}
}
module A {
export interface B {}
}
export = A; Run:
|
Yep, my bad, forgot -d. |
Command:
tsd -m amd -t es5 -d B.ts
Expected: No error
Actual: Crash
Function signature emitter for declarations seems to not understand import types so is failing on the return type of the function
getA
. This happens even with PR #2197 applied. There is no crash if-d
is not used.Version: Arnavion/typescript-github#2015-03-05-b784a4212aeb5a4e42a598a8613a0538ac241123
The text was updated successfully, but these errors were encountered: