Skip to content

Commit

Permalink
chore: add test for #3374
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 13, 2024
1 parent 0fc20e4 commit b8f12f6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-workspace/tsc/vue3/#3374/component.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div>Foo Bar</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'FooBar',
});
</script>
25 changes: 25 additions & 0 deletions test-workspace/tsc/vue3/#3374/main.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div>
<foo-bar class="class" />
</div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import FooBar from './component.vue';
export default defineComponent({
name: 'SameComponent',
components: {
FooBar,
},
props: {
fooBar: { // Almost the same name as component's name
type: Boolean,
default: false,
},
},
});
</script>

0 comments on commit b8f12f6

Please sign in to comment.