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

Não considera a tipagem definida #2

Closed
izacsc opened this issue Jan 23, 2020 · 4 comments
Closed

Não considera a tipagem definida #2

izacsc opened this issue Jan 23, 2020 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@izacsc
Copy link

izacsc commented Jan 23, 2020

Bom dia!

Ao documentar uma função que tenha os parâmetros e/ou retorno tipado, deveria assumir os definidos e não tentar adivinhar.

Resultado:
image

Esperado:

image

@AlencarGabriel AlencarGabriel added the good first issue Good for newcomers label Jan 23, 2020
@AlencarGabriel AlencarGabriel self-assigned this Jan 23, 2020
@AlencarGabriel
Copy link
Owner

AlencarGabriel commented Jan 23, 2020

Olá @izacsc , bom dia!

Obrigado pela sua issue. Realmente essa sintaxe TLPP não foi tratada, fiz um teste no TDS e pelo visto lá também não está.

Bem, vou implementar então essa sintaxe Tl++ e te informo.

@izacsc
Copy link
Author

izacsc commented Jan 23, 2020

Legal @AlencarGabriel, mas só pra conhecimento, essa é uma sintaxe totalmente válida pra AdvPL também e não só pra TL++:

https://tdn.totvs.com/display/tec/Tipagem+de+Dados

E parabéns pela extensão!
Abraço

@AlencarGabriel
Copy link
Owner

Obrigado @izacsc , espero contribuir ainda mais com a comunidade.

Acabei de ver aqui, realmente desconhecia isso para AdvPL. Para mim só ia funcionar no Tlpp.

Fiz alguns testes aqui, e realmente, agora inclusive vou adotar. Obrigado pela informação!

@AlencarGabriel
Copy link
Owner

Issue #2

Boa tarde @izacsc ,

segue comportamento final após os ajustes conforme solicitado.

Novamente obrigado por reportar o problema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants