microsoft / microsoft/typespec

functions reporting errors of usage on teh function declaration

Open
#10,759 1 comment 1 reaction 2 assignees Claimed by @markcowl View on GitHub
bug compiler:core triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

Image

```tsp

#suppress "experimental-feature" "s"
extern fn testFn(args: valueof unknown): Reflection.Operation;

alias T = testFn(original, #["b", "a"]);
```

[Playground](https://typespec.io/playground/?e=%40typespec%2Fopenapi3&c=I3N1cHByZXNzICJleHBlcmltZW50YWwtZmVhdHVyZSIgInMiCmV4dGVybiBmbiB0ZXN0Rm4oYXJnczogdmFsdWVvZiB1bmtub3duKTogUmVmbGVjdGlvbi5PcGVyYcQKOwoKYWxpYXMgVCA9yEBvcmlnaW5hbCwgI1siYiIsICJhIl0pOw%3D%3D&options=%7B%7D&vs=%7B%7D)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.