Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.EclipsePlug-ins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse Projects
  • Eclipse Titan
  • titan.EclipsePlug-ins
  • Issues
  • #467

Closed
Open
Created Feb 24, 2022 by Levente Erős@leventeeros

Generated functions -- parameter types

Summary

It might be worth thinking about the parameter types of nonexistent, generated functions

Steps and/or TTCN-3 code to reproduce

Create a restricted type (or an alias -- worth trying both cases), and call an undefined function in your TTCN-3 code with an actual parameter value (undefined("myvalue") or undefined(525)) matching this restricted type or alias. Then accept TITAN's offer to create the skeleton of this undefined function. Then try the same, but this time, instead of using a literal as an actual parameter value, use indentifiers of a variable/constant/module parameter/template value. This variable/constant/module parameter/template value shall be of the restricted type or alias. (Example: undefined(v_myvar), where v_myvar is a variable)

What is the current bug behavior?

Not sure, what is worth investigating is which formal parameter type to generate the function with in both cases: The parent type, or the closest restricted type? Maybe it's worth to give multiple offers for function signatures? (This latter would make the number of possibilities exponential as a function of the number of function parameters).

What is the expected correct behavior?

?

Relevant logs and/or screenshots

Possible fixes

Titan version

The newest one from the demo in 20220222

Platform details (OS type and version)

/cc @aknappqwt

Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent