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

Compiler infinite loop with instantiation of templated string #5391

Open
4 tasks done
bterlson opened this issue Dec 17, 2024 · 0 comments
Open
4 tasks done

Compiler infinite loop with instantiation of templated string #5391

bterlson opened this issue Dec 17, 2024 · 0 comments
Labels
bug Something isn't working needs-area

Comments

@bterlson
Copy link
Member

Describe the bug

Compiler loops and crashes with this sample

Reproduction

import "@typespec/openapi";
import "@typespec/openapi3";
using OpenAPI;

@extension("x-amazon-apigateway-integration", { 
    credentials: typeof "arn:aws:iam::${accountId}:role/api-gateway-step-function"
})
model Foo<accountId extends valueof string> {}

model Bar {
  x: Foo<"hello">;
}

Checklist

@bterlson bterlson added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-area
Projects
None yet
Development

No branches or pull requests

1 participant