@@ -158,7 +158,7 @@ it("first scoped decorator then non-scoped decorator", async () => {
158
158
emitterName : "@azure-tools/typespec-csharp" ,
159
159
} ) ;
160
160
const { func : funcCsharp } = ( await runnerWithCsharp . compile ( code ) ) as { func : Operation } ;
161
- strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "internal " ) ;
161
+ strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "public " ) ;
162
162
} ) ;
163
163
164
164
it ( "first non-scoped augmented decorator then scoped augmented decorator" , async ( ) => {
@@ -202,10 +202,10 @@ it("first scoped augmented decorator then non-scoped augmented decorator", async
202
202
emitterName : "@azure-tools/typespec-csharp" ,
203
203
} ) ;
204
204
const { func : funcCsharp } = ( await runnerWithCsharp . compile ( code ) ) as { func : Operation } ;
205
- strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "public " ) ;
205
+ strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "internal " ) ;
206
206
} ) ;
207
207
208
- it ( "two scoped decorator " , async ( ) => {
208
+ it ( "two scoped decorators " , async ( ) => {
209
209
const code = `
210
210
@test
211
211
@access(Access.internal, "csharp")
@@ -226,6 +226,27 @@ it("two scoped decorator", async () => {
226
226
strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "internal" ) ;
227
227
} ) ;
228
228
229
+ it ( "two non-scoped decorators" , async ( ) => {
230
+ const code = `
231
+ @test
232
+ @access(Access.internal)
233
+ @access(Access.public)
234
+ op func(
235
+ @query("createdAt")
236
+ createdAt: utcDateTime;
237
+ ): void;
238
+ ` ;
239
+
240
+ const { func } = ( await runner . compile ( code ) ) as { func : Operation } ;
241
+ strictEqual ( getAccess ( runner . context , func ) , "internal" ) ;
242
+
243
+ const runnerWithCsharp = await createSdkTestRunner ( {
244
+ emitterName : "@azure-tools/typespec-csharp" ,
245
+ } ) ;
246
+ const { func : funcCsharp } = ( await runnerWithCsharp . compile ( code ) ) as { func : Operation } ;
247
+ strictEqual ( getAccess ( runnerWithCsharp . context , funcCsharp ) , "internal" ) ;
248
+ } ) ;
249
+
229
250
it ( "csv scope list" , async ( ) => {
230
251
function getCodeTemplate ( language : string ) {
231
252
return `
0 commit comments